MCPcopy
hub / github.com/cli/cli / addJsonFlag

Function addJsonFlag

pkg/cmdutil/json_flags.go:44–46  ·  view source on GitHub ↗
(f *pflag.FlagSet)

Source from the content-addressed store, hash-verified

42}
43
44func addJsonFlag(f *pflag.FlagSet) {
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}

Callers 2

AddJSONFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected