MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / shellQuoteArg

Function shellQuoteArg

apps/cli/src/tooling.ts:334–337  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

332): Record<string, unknown> => schemaExample(requestedSchema ?? {}) as Record<string, unknown>;
333
334export const shellQuoteArg = (value: string): string => {
335 if (/^[A-Za-z0-9_/:=@%+.,-]+$/.test(value)) return value;
336 return `'${value.replaceAll("'", "'\"'\"'")}'`;
337};
338
339const tokenizeSegment = (input: string): ReadonlyArray<string> =>
340 input

Callers 3

tooling.test.tsFile · 0.90
serverTargetResumeFlagFunction · 0.90
printExecutionOutcomeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected