mirror of
https://github.com/apple/container.git
synced 2026-07-12 12:37:02 +00:00
822b47b877
- Closes #1528. - Several commands (`builder status`, `image list`, `stats`, `system df`, `system status`) advertised `--format yaml` and `--format toml` but only handled `json`, and every other format fell through to the table. With this PR, we now route them through one shared renderer with an exhaustive switch over the format enum, so a missing format would now be a compile error, and not just fail silently. - Since TOML has no top level array, TOML output now wraps list payloads under an `items` key, because otherwise it was returning nothing for lists. - `stats` now prints one static result for machine readable formats instead of opening its live table view. - `builder status` now returns an empty list for json/yaml/toml when no builder is running, instead of the unparseable "builder is not running" text. The table view keeps the message. - with `--quiet` and no builder it now exits 0 with no output, earlier it exited non-zero.