(moduleDir: string)
| 241 | const message = error instanceof Error ? error.message : String(error); |
| 242 | console.error(message); |
| 243 | process.exit(1); |
| 244 | } |
| 245 | |
| 246 | function escapeArgForCmd(arg) { |
| 247 | if (/[\s"&|<>^()!]/.test(arg) || arg === '') { |
| 248 | return '"' + arg.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"'; |
| 249 | } |
| 250 | return arg; |
| 251 | } |
no test coverage detected