Skip to main content

parse_ps

Function parse_ps 

Source
pub fn parse_ps(json: &str) -> Result<Vec<ServiceStatus>, Error>
Expand description

Parse docker compose ps --all --format json. Compose prints one JSON object per line; some versions print a single JSON array instead, which is accepted too.