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