(ctx context.Context, r repo.DirectRepository, contentID content.ID)
| 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) |
| 49 | if err != nil { |
| 50 | return errors.Wrapf(err, "error getting content %v", contentID) |
| 51 | } |
| 52 | |
| 53 | return showContentWithFlags(c.out.stdout(), bytes.NewReader(data), c.decompress, c.indentJSON) |
| 54 | } |
no test coverage detected