(ctx context.Context)
| 79 | } |
| 80 | |
| 81 | func (c *Cmd) Output(ctx context.Context) ([]byte, error) { |
| 82 | defer c.logRunFunc(ctx)() |
| 83 | |
| 84 | start := time.Now() |
| 85 | out, err := c.initExecCommand(ctx).Output() |
| 86 | c.dur = time.Since(start) |
| 87 | |
| 88 | c.err = c.error(ctx, err) |
| 89 | return out, c.err |
| 90 | } |
| 91 | |
| 92 | func (c *Cmd) Run(ctx context.Context) error { |
| 93 | defer c.logRunFunc(ctx)() |
no test coverage detected