Add container system version with format yaml (#1353)

Fixed #1156. Introduces yaml formatting.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang authored and GitHub committed 2026-04-22 14:26:20 -07:00
1 parent 49e93cb1a9
commit 44754dacaf
8 files changed
+60 -6

No files matched your search

+16 -1
View File
@@ -1062,7 +1062,7 @@ container system version [--format <format>]
**Options**
* `--format <format>`: Output format (values: json, table; default: table)
* `--format <format>`: Output format (values: json, table, yaml; default: table)
**Table Output**
@@ -1099,6 +1099,21 @@ Backward-compatible with previous CLI-only output. Top-level fields describe the
}
```
**YAML Output**
Equivalent to the JSON output but in YAML format. Each entry in the array represents a component.
```yaml
- version: 1.2.3
buildType: debug
commit: abcdef1
appName: container
- version: 1.2.3
buildType: release
commit: 1234abc
appName: container-apiserver
```
### `container system logs`
Displays logs from the container services. You can specify a time interval or follow new logs in real time.