sf snapshot: uncommitted changes after 158m inactivity

This commit is contained in:
Mikael Hugo 2026-05-07 10:01:56 +02:00
parent 6e0273573c
commit 343ee5c89e

View file

@ -777,11 +777,12 @@ async function runHeadlessOnce(
// suite) get the same diagnostic without a TTY.
if (options.command === "doctor") {
const wantsJson = options.json || options.commandArgs.includes("--json");
const wantsFix = options.commandArgs.includes("--fix");
const { runSFDoctor, formatDoctorReport, formatDoctorReportJson } =
await import("./resources/extensions/sf/doctor.js");
let exitCode = 1;
try {
const report = await runSFDoctor(process.cwd());
const report = await runSFDoctor(process.cwd(), { fix: wantsFix });
const out = wantsJson
? formatDoctorReportJson(report)
: formatDoctorReport(report);