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

Method setup

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

Source from the content-addressed store, hash-verified

19}
20
21func (c *commandIndexList) setup(svc appServices, parent commandParent) {
22 cmd := parent.Command("list", "List content indexes").Alias("ls")
23 cmd.Flag("summary", "Display index blob summary").BoolVar(&c.blockIndexListSummary)
24 cmd.Flag("superseded", "Include inactive index files superseded by compaction").BoolVar(&c.blockIndexListIncludeSuperseded)
25 cmd.Flag("sort", "Index blob sort order").Default("time").EnumVar(&c.blockIndexListSort, "time", "size", "name")
26 c.jo.setup(svc, cmd)
27 c.out.setup(svc)
28 cmd.Action(svc.directRepositoryReadAction(c.run))
29}
30
31func (c *commandIndexList) run(ctx context.Context, rep repo.DirectRepository) error {
32 var jl jsonList

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected