MCPcopy Index your code
hub / github.com/kopia/kopia / setup

Method setup

cli/command_index_inspect.go:29–39  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

27}
28
29func (c *commandIndexInspect) setup(svc appServices, parent commandParent) {
30 cmd := parent.Command("inspect", "Inspect index blob")
31 cmd.Flag("all", "Inspect all index blobs in the repository, including inactive").BoolVar(&c.all)
32 cmd.Flag("active", "Inspect all active index blobs").BoolVar(&c.active)
33 cmd.Flag("content-id", "Inspect all active index blobs").StringsVar(&c.contentIDs)
34 cmd.Flag("parallel", "Parallelism").Default("8").IntVar(&c.parallel)
35 cmd.Arg("blobs", "Names of index blobs to inspect").StringsVar(&c.blobIDs)
36 cmd.Action(svc.directRepositoryReadAction(c.run))
37
38 c.out.setup(svc)
39}
40
41func (c *commandIndexInspect) run(ctx context.Context, rep repo.DirectRepository) error {
42 output := make(chan indexBlobPlusContentInfo)

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected