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

Method setup

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

Source from the content-addressed store, hash-verified

16}
17
18func (c *commandACLDelete) setup(svc appServices, parent commandParent) {
19 cmd := parent.Command("delete", "Delete ACL entry").Alias("remove").Alias("rm")
20 cmd.Arg("id", "Entry ID").StringsVar(&c.ids)
21 cmd.Flag("all", "Remove all ACL entries").BoolVar(&c.all)
22 cmd.Flag("delete", "Really delete").BoolVar(&c.confirm)
23 cmd.Action(svc.repositoryWriterAction(c.run))
24}
25
26func dryRunDelete(ctx context.Context, e *acl.Entry) {
27 log(ctx).Infof("would delete entry %v, pass --delete to actually delete", e.ManifestID)

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected