({ args })
| 199 | }, |
| 200 | // fallow-ignore-next-line complexity |
| 201 | async run({ args }) { |
| 202 | const subcommand = args.subcommand as string | undefined; |
| 203 | if (!subcommand) { |
| 204 | console.log(HELP); |
| 205 | return; |
| 206 | } |
| 207 | switch (subcommand) { |
| 208 | case "deploy": |
| 209 | return runDeploy(args); |
| 210 | case "sites": |
| 211 | return runSites(args); |
| 212 | case "render": |
| 213 | return runRender(args); |
| 214 | case "render-batch": |
| 215 | return runRenderBatch(args); |
| 216 | case "progress": |
| 217 | return runProgress(args); |
| 218 | case "destroy": |
| 219 | return runDestroy(args); |
| 220 | default: |
| 221 | console.error(`${c.error("Unknown subcommand:")} ${subcommand}\n${HELP}`); |
| 222 | process.exit(1); |
| 223 | } |
| 224 | }, |
| 225 | }); |
| 226 | |
| 227 | // ── State helpers ───────────────────────────────────────────────────────── |
no test coverage detected