(args: readonly string[] | undefined)
| 22 | /** Render stored arguments back into the single-line field, re-quoting any |
| 23 | * token that contains whitespace so `parseStdioArgs` recovers it. */ |
| 24 | export function formatStdioArgs(args: readonly string[] | undefined): string { |
| 25 | return (args ?? []).map((arg) => (/\s/.test(arg) ? `"${arg}"` : arg)).join(" "); |
| 26 | } |
| 27 | |
| 28 | /** Parse the KEY=value block into the declared static env map. Splits on the |
| 29 | * FIRST `=` only, so a value may itself contain `=`. Blank lines, `#` |
no outgoing calls
no test coverage detected