(ctx context.Context, cmd string, args ...string)
| 61 | } |
| 62 | |
| 63 | func (e *commandEnvExecer) CommandContext(ctx context.Context, cmd string, args ...string) *exec.Cmd { |
| 64 | name, args, dir, env := e.prepare(ctx, cmd, args...) |
| 65 | c := e.execer.CommandContext(ctx, name, args...) |
| 66 | c.Dir = dir |
| 67 | c.Env = env |
| 68 | return c |
| 69 | } |
| 70 | |
| 71 | func (e *commandEnvExecer) PTYCommandContext(ctx context.Context, cmd string, args ...string) *pty.Cmd { |
| 72 | name, args, dir, env := e.prepare(ctx, cmd, args...) |
nothing calls this directly
no test coverage detected