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

Function shellEscape

packages/desktop/src/main/wsl/runtime.ts:384–386  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

382}
383
384export function shellEscape(value: string) {
385 return `'${value.replace(/'/g, `'"'"'`)}'`
386}
387
388function resolveSystem32Command(command: string) {
389 const root = process.env.SystemRoot ?? process.env.windir

Callers 3

spawnWslSidecarFunction · 0.90
installWslOpencodeFunction · 0.85
readWslCommandVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected