(ctx context.Context, cmd string, args ...string)
| 17 | } |
| 18 | |
| 19 | func ExecWithContext(ctx context.Context, cmd string, args ...string) (CmdResult, error) { |
| 20 | return ExecWithContextInDir(ctx, "", cmd, args, nil) |
| 21 | } |
| 22 | |
| 23 | func ExecWithContextAndEnv(ctx context.Context, env []string, cmd string, args ...string) (CmdResult, error) { |
| 24 | return ExecWithContextInDir(ctx, "", cmd, args, env) |