MCPcopy
hub / github.com/kopia/kopia / run

Method run

cli/command_content_show.go:32–45  ·  view source on GitHub ↗
(ctx context.Context, rep repo.DirectRepository)

Source from the content-addressed store, hash-verified

30}
31
32func (c *commandContentShow) run(ctx context.Context, rep repo.DirectRepository) error {
33 contentIDs, err := toContentIDs(c.ids)
34 if err != nil {
35 return err
36 }
37
38 for _, contentID := range contentIDs {
39 if err := c.contentShow(ctx, rep, contentID); err != nil {
40 return err
41 }
42 }
43
44 return nil
45}
46
47func (c *commandContentShow) contentShow(ctx context.Context, r repo.DirectRepository, contentID content.ID) error {
48 data, err := r.ContentReader().GetContent(ctx, contentID)

Callers

nothing calls this directly

Calls 2

contentShowMethod · 0.95
toContentIDsFunction · 0.85

Tested by

no test coverage detected