Skip to content

Status

status

Parses docker compose ps output for the running mirumoji application

Overview
  • parse_status → turns the raw ps --format json output (JSON array or NDJSON) into a list of ServiceStatus

  • It does not run Docker (the raw output comes from lifecycle.ps) and does not render anything. Presentation is the caller's job

parse_status(output)

Parses docker compose ps --format json, tolerating array or NDJSON forms

Different Docker Compose versions emit either a single JSON array or one JSON object per line, so both are handled

Parameters:

Name Type Description Default
output str

The raw compose ps --format json output

required

Returns:

Type Description
list[ServiceStatus]

One ServiceStatus per service, empty when nothing is running