Skip to content

Commit

Permalink
Merge pull request #150 from cgwalters/status-more-docs
Browse files Browse the repository at this point in the history
cli: Expand on the status of status
  • Loading branch information
jmarrero authored Oct 20, 2023
2 parents 84ee120 + 530caa1 commit 7b26647
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 7b26647

Please sign in to comment.