MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / quote

Function quote

__tests__/bundle-launcher.test.ts:25–25  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

23 roots.push(root);
24 const file = path.join(root, 'test.sh');
25 const quote = (value: string) => "'" + value.replace(/'/g, "'\\''") + "'";
26 fs.writeFileSync(file, `set -- ${args.map(quote).join(' ')}\n${script}`);
27 return spawnSync(bash, ['--noprofile', '--norc', file], {
28 encoding: 'utf8', timeout: 30_000, env: { ...env, ...extraEnv }, input,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected