(command: string, opts: RunWslOptions = {})
| 42 | } |
| 43 | |
| 44 | function runPowerShell(command: string, opts: RunWslOptions = {}) { |
| 45 | return runCommand( |
| 46 | "powershell.exe", |
| 47 | ["-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", command], |
| 48 | opts, |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | function runCommand(command: string, args: string[], opts: RunWslOptions = {}) { |
| 53 | return new Promise<WslCommandResult>((resolve, reject) => { |
no test coverage detected