MCPcopy Index your code
hub / github.com/callstack/agent-device / formatScriptArgQuoteIfNeeded

Function formatScriptArgQuoteIfNeeded

src/replay/script-utils.ts:45–47  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

43
44// Preserve readable CLI-ish script output for ordinary tokens while still quoting whitespace.
45function formatScriptArgQuoteIfNeeded(value: string): string {
46 return formatScriptToken(value, isBareScriptToken);
47}
48
49function formatScriptToken(value: string, canStayBare: (value: string) => boolean): string {
50 return canStayBare(value) ? value : formatScriptStringLiteral(value);

Callers 3

appendRuntimeHintFlagsFunction · 0.85

Calls 1

formatScriptTokenFunction · 0.85

Tested by

no test coverage detected