(token)
| 47 | // token nor expands a %NAME% inside it. A Windows path can't contain a double |
| 48 | // quote, so a token with one is refused rather than mangled. |
| 49 | function quoteForCmd(token) { |
| 50 | if (/["\r\n]/.test(token)) throw new Error(`cannot pass ${JSON.stringify(token)} through cmd.exe`); |
| 51 | return `"${token.replace(/(\\+)$/, '$1$1')}"`.replace(/[()[\]%!^"`<>&|;, *?]/g, '^$&'); |
| 52 | } |
| 53 | |
| 54 | function runCodegraph(args) { |
| 55 | const options = { encoding: 'utf8' }; |
nothing calls this directly
no outgoing calls
no test coverage detected