@@ -11,11 +11,21 @@ bootc-status - Display status
1111
1212Display status
1313
14- This will output a YAML-formatted object using a schema intended to
15- match a Kubernetes resource that describes the state of the booted
16- system.
14+ If standard output is a terminal, this will output a description of the
15+ bootc system state. If standard output is not a terminal, output a
16+ YAML-formatted object using a schema intended to match a Kubernetes
17+ resource that describes the state of the booted system.
1718
18- The exact API format is not currently declared stable.
19+ ## Parsing output via programs
20+
21+ Either the default YAML format or \`\- -format=json\` can be used. Do not
22+ attempt to explicitly parse the output of \`\- -format=humanreadable\` as
23+ it will very likely change over time.
24+
25+ ## Programmatically detecting whether the system is deployed via bootc
26+
27+ Invoke e.g. \` bootc status \- -json\` , and check if \` status.booted\` is
28+ not \` null\` .
1929
2030# OPTIONS
2131
@@ -26,16 +36,18 @@ The exact API format is not currently declared stable.
2636\
2737* Possible values:*
2838
39+ > - humanreadable: Output in Human Readable format
40+ >
2941> - yaml: Output in YAML format
3042>
3143> - json: Output in JSON format
3244
3345** \- -format-version** =* FORMAT_VERSION*
3446
3547: The desired format version. There is currently one supported
36- version, which is version \` 0\` . Pass this option to explicitly
37- request it; it is possible that multiple versions will be supported
38- in the future
48+ version, which is exposed as both \` 0\` and \` 1 \` . Pass this option
49+ to explicitly request it; it is possible that another future version
50+ 2 or newer will be supported in the future
3951
4052** \- -booted**
4153
@@ -47,4 +59,4 @@ The exact API format is not currently declared stable.
4759
4860# VERSION
4961
50- v0.1.13
62+ v0.1.16
0 commit comments