Skip to content

Commit

Permalink
cli: Expand on the status of status
Browse files Browse the repository at this point in the history
- Add a bit more to the doc info
- Add explicit warning it's not stable

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Oct 19, 2023
1 parent 84ee120 commit 530caa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ pub(crate) enum Opt {
/// Change host specification
Edit(EditOpts),
/// Display status
///
/// This will output a YAML-formatted object using a schema intended to match a Kubernetes resource
/// that describes the state of the booted container.
/// The exact API format is not currently declared stable.
Status(StatusOpts),
/// Add a transient writable overlayfs on `/usr` that will be discarded on reboot.
#[clap(alias = "usroverlay")]
Expand Down
2 changes: 2 additions & 0 deletions lib/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ pub(crate) async fn status(opts: super::cli::StatusOpts) -> Result<()> {
host
};

eprintln!("note: The format of this API is not yet stable");

// If we're in JSON mode, then convert the ostree data into Rust-native
// structures that can be serialized.
// Filter to just the serializable status structures.
Expand Down

0 comments on commit 530caa1

Please sign in to comment.