MCPcopy Create free account
hub / github.com/holaboss-ai/holaOS / quoteShellValue

Function quoteShellValue

runtime/api-server/src/runtime-shell.ts:31–36  ·  view source on GitHub ↗
(value: string, platform: NodeJS.Platform = process.platform)

Source from the content-addressed store, hash-verified

29}
30
31export function quoteShellValue(value: string, platform: NodeJS.Platform = process.platform): string {
32 if (runtimeShellKind(platform) === "powershell") {
33 return `'${value.replace(/'/g, "''")}'`;
34 }
35 return `'${value.replace(/'/g, `'\\''`)}'`;
36}
37
38export function shellCommandInvocation(commandText: string, platform: NodeJS.Platform = process.platform): {
39 command: string;

Callers 4

setNodeRunnerTemplateFunction · 0.85
defaultRunnerCommandFunction · 0.85
runnerCommandFunction · 0.85

Calls 2

runtimeShellKindFunction · 0.85
replaceMethod · 0.65

Tested by 1

setNodeRunnerTemplateFunction · 0.68