MCPcopy Index your code
hub / github.com/kopia/kopia / setup

Method setup

cli/command_session_list.go:15–19  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

13}
14
15func (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
21func (c *commandSessionList) run(ctx context.Context, rep repo.DirectRepository) error {
22 sessions, err := rep.ContentReader().ListActiveSessions(ctx)

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected