(svc appServices, parent commandParent)
| 26 | } |
| 27 | |
| 28 | func (c *commandContentList) setup(svc appServices, parent commandParent) { |
| 29 | cmd := parent.Command("list", "List contents").Alias("ls") |
| 30 | cmd.Flag("long", "Long output").Short('l').BoolVar(&c.long) |
| 31 | cmd.Flag("compression", "Compression").Short('c').BoolVar(&c.compression) |
| 32 | cmd.Flag("deleted", "Include deleted content").BoolVar(&c.includeDeleted) |
| 33 | cmd.Flag("deleted-only", "Only show deleted content").BoolVar(&c.deletedOnly) |
| 34 | cmd.Flag("summary", "Summarize the list").Short('s').BoolVar(&c.summary) |
| 35 | cmd.Flag("human", "Human-readable output").Short('h').BoolVar(&c.human) |
| 36 | c.contentRange.setup(cmd) |
| 37 | c.jo.setup(svc, cmd) |
| 38 | c.out.setup(svc) |
| 39 | cmd.Action(svc.directRepositoryReadAction(c.run)) |
| 40 | } |
| 41 | |
| 42 | func (c *commandContentList) run(ctx context.Context, rep repo.DirectRepository) error { |
| 43 | var jl jsonList |
nothing calls this directly
no test coverage detected