(svc appServices, parent commandParent)
| 23 | } |
| 24 | |
| 25 | func (c *commandBlobShow) setup(svc appServices, parent commandParent) { |
| 26 | cmd := parent.Command("show", "Show contents of BLOBs").Alias("cat") |
| 27 | cmd.Flag("decrypt", "Decrypt blob if possible").BoolVar(&c.blobShowDecrypt) |
| 28 | cmd.Arg("blobID", "Blob IDs").Required().StringsVar(&c.blobShowIDs) |
| 29 | cmd.Action(svc.directRepositoryReadAction(c.run)) |
| 30 | |
| 31 | c.out.setup(svc) |
| 32 | } |
| 33 | |
| 34 | func (c *commandBlobShow) run(ctx context.Context, rep repo.DirectRepository) error { |
| 35 | for _, blobID := range c.blobShowIDs { |
nothing calls this directly
no test coverage detected