MCPcopy Create free account
hub / github.com/xpf0000/FlyEnv / buildPowerShellEncodedCommand

Function buildPowerShellEncodedCommand

src/shared/PowerShellCommand.ts:24–29  ·  view source on GitHub ↗
(
  script: string,
  powershellPath = 'powershell.exe'
)

Source from the content-addressed store, hash-verified

22}
23
24export function buildPowerShellEncodedCommand(
25 script: string,
26 powershellPath = 'powershell.exe'
27): string {
28 return [powershellPath, ...powerShellInlineArgs(script)].map(quoteCmdArg).join(' ')
29}

Callers 1

createPlanFunction · 0.90

Calls 1

powerShellInlineArgsFunction · 0.85

Tested by

no test coverage detected