(label, msg)
| 93 | } |
| 94 | |
| 95 | function log(label, msg) { |
| 96 | const reset = "\x1b[0m"; |
| 97 | const green = "\x1b[92m"; |
| 98 | const yellow = "\x1b[93m"; |
| 99 | const blue = "\x1b[94m"; |
| 100 | const colors = { info: blue, ok: green, warn: yellow }; |
| 101 | const c = colors[label] || reset; |
| 102 | console.log(` ${c}[${label}]${reset} ${msg}`); |
| 103 | } |
| 104 | |
| 105 | function resolveSpawnCommand(command) { |
| 106 | if (process.platform !== "win32") return command; |
no test coverage detected