(svc appServices, parent commandParent)
| 16 | } |
| 17 | |
| 18 | func (c *commandCachePrefetch) setup(svc appServices, parent commandParent) { |
| 19 | cmd := parent.Command("prefetch", "Prefetches the provided objects into cache") |
| 20 | cmd.Flag("hint", "Prefetch hint").StringVar(&c.hint) |
| 21 | cmd.Action(svc.directRepositoryWriteAction(c.run)) |
| 22 | |
| 23 | cmd.Arg("object", "Object ID to prefetch").Required().StringsVar(&c.objectIDs) |
| 24 | } |
| 25 | |
| 26 | func (c *commandCachePrefetch) run(ctx context.Context, rep repo.DirectRepositoryWriter) error { |
| 27 | var oids []object.ID |
nothing calls this directly
no test coverage detected