Skip to content

Commit

Permalink
sysinfo output flag improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Mosbaugh <[email protected]>
  • Loading branch information
emosbaugh committed Nov 26, 2024
1 parent 69bf8c7 commit 938da8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sysinfo/sysinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewSysinfoCmd() *cobra.Command {

var cli cliReporter
switch outputFormat {
case "human":
case "text":
cli = &humanReporter{
colors: aurora.NewAurora(term.IsTerminal(out)),
}
Expand Down Expand Up @@ -80,7 +80,7 @@ func NewSysinfoCmd() *cobra.Command {
flags.BoolVar(&sysinfoSpec.ControllerRoleEnabled, "controller", true, "Include controller-specific sysinfo")
flags.BoolVar(&sysinfoSpec.WorkerRoleEnabled, "worker", true, "Include worker-specific sysinfo")
flags.StringVar(&sysinfoSpec.DataDir, "data-dir", constant.DataDirDefault, "Data Directory for k0s")
flags.StringVarP(&outputFormat, "output", "o", "human", "Output format. Must be one of human|yaml|json")
flags.StringVarP(&outputFormat, "output", "o", "text", "Output format (valid values: text, json, yaml)")

return cmd
}
Expand Down

0 comments on commit 938da8c

Please sign in to comment.