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

Method setup

cli/command_content_list.go:28–40  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

26}
27
28func (c *commandContentList) setup(svc appServices, parent commandParent) {
29 cmd := parent.Command("list", "List contents").Alias("ls")
30 cmd.Flag("long", "Long output").Short('l').BoolVar(&c.long)
31 cmd.Flag("compression", "Compression").Short('c').BoolVar(&c.compression)
32 cmd.Flag("deleted", "Include deleted content").BoolVar(&c.includeDeleted)
33 cmd.Flag("deleted-only", "Only show deleted content").BoolVar(&c.deletedOnly)
34 cmd.Flag("summary", "Summarize the list").Short('s').BoolVar(&c.summary)
35 cmd.Flag("human", "Human-readable output").Short('h').BoolVar(&c.human)
36 c.contentRange.setup(cmd)
37 c.jo.setup(svc, cmd)
38 c.out.setup(svc)
39 cmd.Action(svc.directRepositoryReadAction(c.run))
40}
41
42func (c *commandContentList) run(ctx context.Context, rep repo.DirectRepository) error {
43 var jl jsonList

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected