pub fn parse_container_output(
output: &str,
caller_runtime: Option<ContainerRuntime>,
) -> Result<ContainerListing, String>Expand description
Parse the stdout of a container listing command.
When sentinels are present (combined detection run): extract runtime from
the sentinel line, parse remaining lines as NDJSON. When caller_runtime
is provided (subsequent run with known runtime): parse all lines as NDJSON.
In both cases, ##purple:engine## splits the listing from the optional
trailing daemon version line.