MCPcopy
hub / github.com/cli/cli / addTemplateFlag

Function addTemplateFlag

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

Source from the content-addressed store, hash-verified

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}
53
54func setupJsonFlags(cmd *cobra.Command, exportTarget *Exporter, fields []string) {
55

Callers 2

AddJSONFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected