Skip to content

Commit

Permalink
fix: default output format not set properly
Browse files Browse the repository at this point in the history
I was setting the wrong property in contradiction with
the logic around default output format

fixes: #1
  • Loading branch information
davidalpert committed Nov 19, 2023
1 parent 823f4a1 commit 36c1bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v1/printer_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (o *PrinterOptions) WithStreams(s IOStreams) *PrinterOptions {

// WithDefaultOutput sets a default output format if one is not provided through a flag value
func (o *PrinterOptions) WithDefaultOutput(output string) *PrinterOptions {
o.OutputFormat = &output
o.DefaultOutputFormat = &output
return o
}

Expand Down

0 comments on commit 36c1bd7

Please sign in to comment.