(ctx context.Context)
| 68 | } |
| 69 | |
| 70 | func (c *Cmd) CombinedOutput(ctx context.Context) ([]byte, error) { |
| 71 | defer c.logRunFunc(ctx)() |
| 72 | |
| 73 | start := time.Now() |
| 74 | out, err := c.initExecCommand(ctx).CombinedOutput() |
| 75 | c.dur = time.Since(start) |
| 76 | |
| 77 | c.err = c.error(ctx, err) |
| 78 | return out, c.err |
| 79 | } |
| 80 | |
| 81 | func (c *Cmd) Output(ctx context.Context) ([]byte, error) { |
| 82 | defer c.logRunFunc(ctx)() |