(name string, arg ...string)
| 35 | } |
| 36 | |
| 37 | func (tempDir *TempDir) NewCommand(name string, arg ...string) *exec.Cmd { |
| 38 | cmd := exec.Command(name, arg...) |
| 39 | cmd.Dir = tempDir.Root |
| 40 | return cmd |
| 41 | } |
| 42 | |
| 43 | func (tempDir *TempDir) RequireExec(name string, arg ...string) { |
| 44 | cmd := tempDir.NewCommand(name, arg...) |
no outgoing calls