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

Function newPrintFlags

pkg/cmd/application/create/create_test.go:229–234  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

227}
228
229func newPrintFlags(output string) *cmdutil.PrintFlags {
230 pf := cmdutil.NewPrintFlags()
231 *pf.OutputFormat = output
232 pf.OutputFlagSpecified = func() bool { return output != "" }
233 return pf
234}
235
236// newOpts builds CreateOptions wired to the stub server, defaulting to JSON output.
237func newOpts(

Callers 2

newOptsFunction · 0.70

Calls 1

NewPrintFlagsFunction · 0.92

Tested by

no test coverage detected