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

Method structuredOutput

pkg/cmd/open/open.go:234–238  ·  view source on GitHub ↗

structuredOutput reports whether an output format was requested via --output.

()

Source from the content-addressed store, hash-verified

232
233// structuredOutput reports whether an output format was requested via --output.
234func (opts *OpenOptions) structuredOutput() bool {
235 return opts.PrintFlags != nil &&
236 opts.PrintFlags.OutputFlagSpecified != nil &&
237 opts.PrintFlags.OutputFlagSpecified()
238}
239
240// printTargets renders page metadata with the configured printer. When listing,
241// every shortcut is printed; otherwise only the requested shortcut is printed.

Callers 1

runOpenCmdFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected