(entry: string | null)
| 98 | } |
| 99 | |
| 100 | function ensureQmd(entry: string | null): void { |
| 101 | const probe = spawnQmd(entry, ["--version"]); |
| 102 | if (probe.status !== 0) { |
| 103 | process.stderr.write( |
| 104 | "qmd not found. Install it first: npm i -g @tobilu/qmd\n", |
| 105 | ); |
| 106 | process.exit(1); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Run a qmd subcommand and treat any non-zero exit as fatal. Echoes captured |