(ctx context.Context, env []string, cmd string, args ...string)
| 21 | } |
| 22 | |
| 23 | func ExecWithContextAndEnv(ctx context.Context, env []string, cmd string, args ...string) (CmdResult, error) { |
| 24 | return ExecWithContextInDir(ctx, "", cmd, args, env) |
| 25 | } |
| 26 | |
| 27 | func ExecWithContextInDir(ctx context.Context, dir, cmd string, args, env []string) (CmdResult, error) { |
| 28 | command := exec.CommandContext(ctx, cmd, args...) |