(svc appServices, parent commandParent)
| 27 | } |
| 28 | |
| 29 | func (c *commandIndexInspect) setup(svc appServices, parent commandParent) { |
| 30 | cmd := parent.Command("inspect", "Inspect index blob") |
| 31 | cmd.Flag("all", "Inspect all index blobs in the repository, including inactive").BoolVar(&c.all) |
| 32 | cmd.Flag("active", "Inspect all active index blobs").BoolVar(&c.active) |
| 33 | cmd.Flag("content-id", "Inspect all active index blobs").StringsVar(&c.contentIDs) |
| 34 | cmd.Flag("parallel", "Parallelism").Default("8").IntVar(&c.parallel) |
| 35 | cmd.Arg("blobs", "Names of index blobs to inspect").StringsVar(&c.blobIDs) |
| 36 | cmd.Action(svc.directRepositoryReadAction(c.run)) |
| 37 | |
| 38 | c.out.setup(svc) |
| 39 | } |
| 40 | |
| 41 | func (c *commandIndexInspect) run(ctx context.Context, rep repo.DirectRepository) error { |
| 42 | output := make(chan indexBlobPlusContentInfo) |
nothing calls this directly
no test coverage detected