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

Function NewJSONPathPrintFlags

pkg/cmdutil/jsonpath_flags.go:123–131  ·  view source on GitHub ↗

NewJSONPathPrintFlags returns flags associated with --template printing, with default values set.

()

Source from the content-addressed store, hash-verified

121// NewJSONPathPrintFlags returns flags associated with
122// --template printing, with default values set.
123func NewJSONPathPrintFlags() *JSONPathPrintFlags {
124 allowMissingKeysPtr := true
125 templateArgPtr := ""
126
127 return &JSONPathPrintFlags{
128 TemplateArgument: &templateArgPtr,
129 AllowMissingKeys: &allowMissingKeysPtr,
130 }
131}

Callers 1

NewPrintFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected