(svc appServices, parent commandParent)
| 16 | } |
| 17 | |
| 18 | func (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 | |
| 26 | func dryRunDelete(ctx context.Context, e *acl.Entry) { |
| 27 | log(ctx).Infof("would delete entry %v, pass --delete to actually delete", e.ManifestID) |
nothing calls this directly
no test coverage detected