MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / escapeForShell

Function escapeForShell

cli/src/utils/open-file.ts:12–13  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

10const isMac = os.platform() === 'darwin'
11
12const escapeForShell = (value: string): string =>
13 `'${value.replace(/'/g, `'\\''`)}'`
14
15const escapeForCmd = (value: string): string =>
16 `"${value.replace(/"/g, '""')}"`

Callers 1

buildEditorCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected