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

Method AllowedFormats

pkg/cmdutil/print_flags.go:55–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (f *PrintFlags) AllowedFormats() []string {
56 ret := []string{}
57 ret = append(ret, f.JSONPrintFlags.AllowedFormats()...)
58 ret = append(ret, f.JSONPathPrintFlags.AllowedFormats()...)
59 return ret
60}
61
62// HasStructuredOutput returns true when the command is configured to emit a
63// machine-readable format, either through an explicit flag or a default output.

Callers 2

ToPrinterMethod · 0.95
AddFlagsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected