| 20 | } |
| 21 | |
| 22 | func (c *jsonOutput) setup(svc appServices, cmd *kingpin.CmdClause) { |
| 23 | cmd.Flag("json", "Output result in JSON format to stdout").BoolVar(&c.jsonOutput) |
| 24 | cmd.Flag("json-indent", "Output result in indented JSON format to stdout").Hidden().BoolVar(&c.jsonIndent) |
| 25 | cmd.Flag("json-verbose", "Output non-essential data (e.g. statistics) in JSON format").Hidden().BoolVar(&c.jsonVerbose) |
| 26 | |
| 27 | c.out = svc.stdout() |
| 28 | } |
| 29 | |
| 30 | func (c *jsonOutput) cleanupSnapshotManifestForJSON(v *snapshot.Manifest) any { |
| 31 | m := *v |