WithDefaultOutput sets a default output format if one is not provided through a flag value
(output string)
| 118 | |
| 119 | // WithDefaultOutput sets a default output format if one is not provided through a flag value |
| 120 | func (f *PrintFlags) WithDefaultOutput(output string) *PrintFlags { |
| 121 | f.OutputFormat = &output |
| 122 | return f |
| 123 | } |
| 124 | |
| 125 | // NewPrintFlags returns a default *PrintFlags |
| 126 | func NewPrintFlags() *PrintFlags { |
no outgoing calls