(message: string, asJson: boolean)
| 374 | } |
| 375 | |
| 376 | function emitFailureReport(message: string, asJson: boolean): void { |
| 377 | if (asJson) { |
| 378 | console.log( |
| 379 | JSON.stringify(withMeta({ ok: false, error: message, errors: [], warnings: [] }), null, 2), |
| 380 | ); |
| 381 | return; |
| 382 | } |
| 383 | console.error(`${c.error("✗")} ${message}`); |
| 384 | } |
| 385 | |
| 386 | export default defineCommand({ |
| 387 | meta: { |