-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
status: Add explicit
--format
argument
Prep for adding `--format=human` for example. But this is also useful for anything that explicitly wants to consume YAML today. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
4 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
use std assert | ||
use tap.nu | ||
|
||
tap begin "verify bootc status --json looks sane" | ||
tap begin "verify bootc status output formats" | ||
|
||
let st = bootc status --json | from json | ||
assert equal $st.apiVersion org.containers.bootc/v1alpha1 | ||
let st = bootc status --format=yaml | from yaml | ||
assert equal $st.apiVersion org.containers.bootc/v1alpha1 | ||
tap ok |