MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeShellArg

Function escapeShellArg

apps/sim/app/api/tools/ssh/utils.ts:364–366  ·  view source on GitHub ↗
(arg: string)

Source from the content-addressed store, hash-verified

362 * - Next ' starts a new single-quoted string
363 */
364export function escapeShellArg(arg: string): string {
365 return arg.replace(/'/g, "'\\''")
366}
367
368/**
369 * Validate that authentication credentials are provided

Callers 8

route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
captureRepoChangesFunction · 0.90
buildSshToolSpecsFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected