MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / quoteShellArg

Function quoteShellArg

packages/server/src/lib/fileLaunch.ts:222–225  ·  view source on GitHub ↗
(value: string, platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

220}
221
222function quoteShellArg(value: string, platform: NodeJS.Platform): string {
223 if (platform === 'win32') return `"${value.replaceAll('"', '\\"')}"`;
224 return `'${value.replaceAll("'", "'\\''")}'`;
225}

Callers 2

openFileCommandForFunction · 0.70
openInVsCodeLikeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected