MCPcopy
hub / github.com/kopia/kopia / setup

Method setup

cli/json_output.go:22–28  ·  view source on GitHub ↗
(svc appServices, cmd *kingpin.CmdClause)

Source from the content-addressed store, hash-verified

20}
21
22func (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
30func (c *jsonOutput) cleanupSnapshotManifestForJSON(v *snapshot.Manifest) any {
31 m := *v

Callers

nothing calls this directly

Calls 1

stdoutMethod · 0.65

Tested by

no test coverage detected