(cmd)
| 616 | // ═══════════════════════════════════════════════════════════════════════════ |
| 617 | |
| 618 | function commandExists(cmd) { |
| 619 | const result = |
| 620 | process.platform === "win32" |
| 621 | ? spawnSync("where.exe", [cmd], { stdio: "pipe" }) |
| 622 | : spawnSync("sh", ["-c", `command -v ${cmd}`], { stdio: "pipe" }); |
| 623 | |
| 624 | return result.status === 0; |
| 625 | } |
| 626 | |
| 627 | function checkPrerequisites({ |
| 628 | checkUvx = true, |
no outgoing calls
no test coverage detected