MCPcopy Create free account
hub / github.com/algolia/cli / WithDefaultOutput

Method WithDefaultOutput

pkg/cmdutil/print_flags.go:120–123  ·  view source on GitHub ↗

WithDefaultOutput sets a default output format if one is not provided through a flag value

(output string)

Source from the content-addressed store, hash-verified

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

Callers 15

NewGetCmdFunction · 0.80
NewBrowseCmdFunction · 0.80
NewSearchCmdFunction · 0.80
NewBrowseCmdFunction · 0.80
NewGetCmdFunction · 0.80
NewBrowseCmdFunction · 0.80
NewGetCmdFunction · 0.80
NewGetCmdFunction · 0.80
NewSearchCmdFunction · 0.80

Calls

no outgoing calls