Status
status
¶
Parses docker compose ps output for the running mirumoji application
Overview
-
parse_status→ turns the rawps --format jsonoutput (JSON array or NDJSON) into a list ofServiceStatus -
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 |
required |
Returns:
| Type | Description |
|---|---|
list[ServiceStatus]
|
One |