(arg ...string)
| 47 | } |
| 48 | |
| 49 | func (tempDir *TempDir) ExecQuickhook(arg ...string) (string, error) { |
| 50 | cmd := tempDir.NewCommand(tempDir.Quickhook, arg...) |
| 51 | output, err := cmd.CombinedOutput() |
| 52 | return string(output), err |
| 53 | } |
| 54 | |
| 55 | func (tempDir *TempDir) WriteFile(relativePath []string, data string) { |
| 56 | fullPath := path.Join(append([]string{tempDir.Root}, relativePath...)...) |