(cmd)
| 185 | // ═══════════════════════════════════════════════════════════════════════════ |
| 186 | |
| 187 | function commandExists(cmd) { |
| 188 | const result = |
| 189 | process.platform === "win32" |
| 190 | ? spawnSync("where.exe", [cmd], { stdio: "pipe" }) |
| 191 | : spawnSync("sh", ["-c", `command -v ${cmd}`], { stdio: "pipe" }); |
| 192 | |
| 193 | return result.status === 0; |
| 194 | } |
| 195 | |
| 196 | function checkPrerequisites() { |
| 197 | logStep("1/3", "Checking prerequisites..."); |
no outgoing calls
no test coverage detected