(svc appServices, parent commandParent)
| 19 | } |
| 20 | |
| 21 | func (c *commandIndexList) setup(svc appServices, parent commandParent) { |
| 22 | cmd := parent.Command("list", "List content indexes").Alias("ls") |
| 23 | cmd.Flag("summary", "Display index blob summary").BoolVar(&c.blockIndexListSummary) |
| 24 | cmd.Flag("superseded", "Include inactive index files superseded by compaction").BoolVar(&c.blockIndexListIncludeSuperseded) |
| 25 | cmd.Flag("sort", "Index blob sort order").Default("time").EnumVar(&c.blockIndexListSort, "time", "size", "name") |
| 26 | c.jo.setup(svc, cmd) |
| 27 | c.out.setup(svc) |
| 28 | cmd.Action(svc.directRepositoryReadAction(c.run)) |
| 29 | } |
| 30 | |
| 31 | func (c *commandIndexList) run(ctx context.Context, rep repo.DirectRepository) error { |
| 32 | var jl jsonList |
nothing calls this directly
no test coverage detected