(ctx context.Context, rep repo.DirectRepository)
| 32 | } |
| 33 | |
| 34 | func (c *commandBlobShow) run(ctx context.Context, rep repo.DirectRepository) error { |
| 35 | for _, blobID := range c.blobShowIDs { |
| 36 | if err := c.maybeDecryptBlob(ctx, c.out.stdout(), rep, blob.ID(blobID)); err != nil { |
| 37 | return errors.Wrap(err, "error presenting blob") |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | return nil |
| 42 | } |
| 43 | |
| 44 | func (c *commandBlobShow) maybeDecryptBlob(ctx context.Context, w io.Writer, rep repo.DirectRepository, blobID blob.ID) error { |
| 45 | var ( |
nothing calls this directly
no test coverage detected