MCPcopy Create free account
hub / github.com/Noumena-Network/code / shellQuoteArg

Function shellQuoteArg

src/testing/ptyContractHarness.ts:78–80  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

76}
77
78function shellQuoteArg(value: string): string {
79 return `'${String(value).replace(/'/g, `'"'"'`)}'`
80}
81
82function shellJoinArgs(args: readonly string[]): string {
83 return args.map(shellQuoteArg).join(' ')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected