(cmdStr string)
| 20 | } |
| 21 | |
| 22 | func RunCommandPowershell(cmdStr string) error { |
| 23 | cmd := exec.Command( |
| 24 | "powershell", |
| 25 | "-NoProfile", |
| 26 | "-NonInteractive", |
| 27 | "-Command", |
| 28 | cmdStr, |
| 29 | ) |
| 30 | cmd.Stdout = os.Stdout |
| 31 | cmd.Stderr = os.Stderr |
| 32 | return cmd.Run() |
| 33 | } |
| 34 | |
| 35 | func RunCommandPowershellWithOutput(cmdStr string) (string, error) { |
| 36 | cmd := exec.Command( |
no outgoing calls
no test coverage detected