(ctx context.Context, dir string, cmd string, args ...string)
| 124 | } |
| 125 | |
| 126 | func runCmd(ctx context.Context, dir string, cmd string, args ...string) ([]byte, bool) { |
| 127 | if !config.Conf().Optional.Dynamic { |
| 128 | return nil, false |
| 129 | } |
| 130 | c := exec.CommandContext(ctx, cmd, args...) |
| 131 | c.Dir = dir |
| 132 | out, err := c.CombinedOutput() |
| 133 | return out, err == nil |
| 134 | } |
no test coverage detected