MCPcopy Create free account
hub / github.com/kopia/kopia / setup

Method setup

cli/command_blob_show.go:25–32  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

23}
24
25func (c *commandBlobShow) setup(svc appServices, parent commandParent) {
26 cmd := parent.Command("show", "Show contents of BLOBs").Alias("cat")
27 cmd.Flag("decrypt", "Decrypt blob if possible").BoolVar(&c.blobShowDecrypt)
28 cmd.Arg("blobID", "Blob IDs").Required().StringsVar(&c.blobShowIDs)
29 cmd.Action(svc.directRepositoryReadAction(c.run))
30
31 c.out.setup(svc)
32}
33
34func (c *commandBlobShow) run(ctx context.Context, rep repo.DirectRepository) error {
35 for _, blobID := range c.blobShowIDs {

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected