(outcomes: CheckOutcome[], options: { redact?: boolean } = {})
| 216 | * the CLI turns it on for `--json` output. |
| 217 | */ |
| 218 | export function buildDoctorReport(outcomes: CheckOutcome[], options: { redact?: boolean } = {}) { |
| 219 | const checks = options.redact ? outcomes.map(redactOutcome) : outcomes; |
| 220 | return withMeta({ |
| 221 | ok: checks.every((o) => o.ok), |
| 222 | platform: process.platform, |
| 223 | arch: process.arch, |
| 224 | checks, |
| 225 | }); |
| 226 | } |
| 227 | |
| 228 | export default defineCommand({ |
| 229 | meta: { name: "doctor", description: "Check system dependencies and environment" }, |
no test coverage detected