(svc appServices, parent commandParent)
| 13 | } |
| 14 | |
| 15 | func (c *commandSessionList) setup(svc appServices, parent commandParent) { |
| 16 | cmd := parent.Command("list", "List sessions").Alias("ls") |
| 17 | cmd.Action(svc.directRepositoryReadAction(c.run)) |
| 18 | c.out.setup(svc) |
| 19 | } |
| 20 | |
| 21 | func (c *commandSessionList) run(ctx context.Context, rep repo.DirectRepository) error { |
| 22 | sessions, err := rep.ContentReader().ListActiveSessions(ctx) |
nothing calls this directly
no test coverage detected