MCPcopy
hub / github.com/kopia/kopia / run

Method run

cli/command_manifest_delete.go:25–35  ·  view source on GitHub ↗
(ctx context.Context, rep repo.RepositoryWriter)

Source from the content-addressed store, hash-verified

23}
24
25func (c *commandManifestDelete) run(ctx context.Context, rep repo.RepositoryWriter) error {
26 c.svc.dangerousCommand()
27
28 for _, it := range toManifestIDs(c.manifestRemoveItems) {
29 if err := rep.DeleteManifest(ctx, it); err != nil {
30 return errors.Wrapf(err, "unable to delete manifest %v", it)
31 }
32 }
33
34 return nil
35}

Callers

nothing calls this directly

Calls 3

toManifestIDsFunction · 0.85
dangerousCommandMethod · 0.65
DeleteManifestMethod · 0.65

Tested by

no test coverage detected