(ctx context.Context)
| 90 | } |
| 91 | |
| 92 | func (c *Cmd) Run(ctx context.Context) error { |
| 93 | defer c.logRunFunc(ctx)() |
| 94 | |
| 95 | start := time.Now() |
| 96 | err := c.initExecCommand(ctx).Run() |
| 97 | c.dur = time.Since(start) |
| 98 | |
| 99 | c.err = c.error(ctx, err) |
| 100 | return c.err |
| 101 | } |
| 102 | |
| 103 | func (c *Cmd) LogValue() slog.Value { |
| 104 | attrs := []slog.Attr{ |
no test coverage detected