Skip to content

Commit 3abf58b

Browse files
authored
Set JSON as a default output format (#564)
As decided for the CLI overhaul, JSON is meant to be a default output format. Other formats like `YAML` or `text` can be selected by choosing `-[-o]utput text|yaml`.
1 parent 1697ce1 commit 3abf58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/output/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func writeText(w io.Writer, v interface{}) error {
6565

6666
// AddFlags adds format flag to the command flags
6767
func AddFlags(flags *pflag.FlagSet) {
68-
flags.StringP("output", "o", "text", "Output format. One of: json, yaml, text")
68+
flags.StringP("output", "o", "json", "Output format. One of: json, yaml, text")
6969
}
7070

7171
// GetFormat gets the format from command flags

0 commit comments

Comments
 (0)