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

Function escapeForCmd

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

Source from the content-addressed store, hash-verified

13 `'${value.replace(/'/g, `'\\''`)}'`
14
15const escapeForCmd = (value: string): string =>
16 `"${value.replace(/"/g, '""')}"`
17
18const replaceFilePlaceholder = (command: string, filePath: string): string => {
19 if (command.includes('%f')) {

Callers 1

buildEditorCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected