(args []string, env []string)
| 59 | } |
| 60 | |
| 61 | func (self *Shell) runCommandWithOutputAndEnv(args []string, env []string) (string, error) { |
| 62 | cmd := exec.Command(args[0], args[1:]...) |
| 63 | cmd.Env = append(self.env, env...) |
| 64 | cmd.Dir = self.dir |
| 65 | |
| 66 | output, err := cmd.CombinedOutput() |
| 67 | |
| 68 | return string(output), err |
| 69 | } |
| 70 | |
| 71 | func (self *Shell) RunShellCommand(cmdStr string) *Shell { |
| 72 | shell := "sh" |
no outgoing calls
no test coverage detected