Skip to content

Commit 7b26647

Browse files
authored
Merge pull request #150 from cgwalters/status-more-docs
cli: Expand on the status of status
2 parents 84ee120 + 530caa1 commit 7b26647

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/src/cli.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ pub(crate) enum Opt {
135135
/// Change host specification
136136
Edit(EditOpts),
137137
/// Display status
138+
///
139+
/// This will output a YAML-formatted object using a schema intended to match a Kubernetes resource
140+
/// that describes the state of the booted container.
141+
/// The exact API format is not currently declared stable.
138142
Status(StatusOpts),
139143
/// Add a transient writable overlayfs on `/usr` that will be discarded on reboot.
140144
#[clap(alias = "usroverlay")]

lib/src/status.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ pub(crate) async fn status(opts: super::cli::StatusOpts) -> Result<()> {
253253
host
254254
};
255255

256+
eprintln!("note: The format of this API is not yet stable");
257+
256258
// If we're in JSON mode, then convert the ostree data into Rust-native
257259
// structures that can be serialized.
258260
// Filter to just the serializable status structures.

0 commit comments

Comments
 (0)