(svc appServices, parent commandParent)
| 16 | } |
| 17 | |
| 18 | func (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 | |
| 26 | func (c *commandBlobDelete) run(ctx context.Context, rep repo.DirectRepositoryWriter) error { |
| 27 | c.svc.dangerousCommand() |
nothing calls this directly
no test coverage detected