-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
write_stdout: add tabulated data format
Add a new write_stdout format called "fields". If specified, write a tabulated list of fields. It's easier to read than raw json or text outputs. Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package api | ||
|
||
type WriteStdout struct { | ||
Format string `yaml:"format" json:"format" doc:"the format of each line: printf (default) or json"` | ||
Format string `yaml:"format" json:"format" doc:"the format of each line: printf (default), fields, or json"` | ||
} |
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