(cmd *cobra.Command, exportTarget *Exporter, fields []string)
| 33 | } |
| 34 | |
| 35 | func AddJSONFlagsWithoutShorthand(cmd *cobra.Command, exportTarget *Exporter, fields []string) { |
| 36 | f := cmd.Flags() |
| 37 | addJsonFlag(f) |
| 38 | addJqFlag(f, "") |
| 39 | addTemplateFlag(f, "") |
| 40 | |
| 41 | setupJsonFlags(cmd, exportTarget, fields) |
| 42 | } |
| 43 | |
| 44 | func addJsonFlag(f *pflag.FlagSet) { |
| 45 | f.StringSlice("json", nil, "Output JSON with the specified `fields`") |