MCPcopy Index your code
hub / github.com/anomalyco/opencode / runPowerShell

Function runPowerShell

packages/desktop/src/main/wsl/runtime.ts:44–50  ·  view source on GitHub ↗
(command: string, opts: RunWslOptions = {})

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

runCommandFunction · 0.70

Tested by

no test coverage detected