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

Method setup

cli/command_blob_delete.go:18–24  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

16}
17
18func (c *commandBlobDelete) setup(svc appServices, parent commandParent) {
19 cmd := parent.Command("delete", "Delete blobs by ID").Alias("remove").Alias("rm").Hidden()
20 cmd.Arg("blobIDs", "Blob IDs").Required().StringsVar(&c.blobIDs)
21 cmd.Action(svc.directRepositoryWriteAction(c.run))
22
23 c.svc = svc
24}
25
26func (c *commandBlobDelete) run(ctx context.Context, rep repo.DirectRepositoryWriter) error {
27 c.svc.dangerousCommand()

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected