(ctx context.Context, rep repo.DirectRepository)
| 30 | } |
| 31 | |
| 32 | func (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 | |
| 47 | func (c *commandContentShow) contentShow(ctx context.Context, r repo.DirectRepository, contentID content.ID) error { |
| 48 | data, err := r.ContentReader().GetContent(ctx, contentID) |
nothing calls this directly
no test coverage detected