MCPcopy Index your code
hub / github.com/cli/cli / addJqFlag

Function addJqFlag

pkg/cmdutil/json_flags.go:47–49  ·  view source on GitHub ↗
(f *pflag.FlagSet, shorthand string)

Source from the content-addressed store, hash-verified

45 f.StringSlice("json", nil, "Output JSON with the specified `fields`")
46}
47func addJqFlag(f *pflag.FlagSet, shorthand string) {
48 f.StringP("jq", shorthand, "", "Filter JSON output using a jq `expression`")
49}
50func addTemplateFlag(f *pflag.FlagSet, shorthand string) {
51 f.StringP("template", shorthand, "", "Format JSON output using a Go template; see \"gh help formatting\"")
52}

Callers 2

AddJSONFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected