fix(update): show skipped status with warning indicator for dirty repo

This commit is contained in:
Benjamin Jesuiter
2026-01-11 01:06:34 +01:00
committed by Peter Steinberger
parent 6a2b8328df
commit 35d42be828
2 changed files with 76 additions and 44 deletions

View File

@@ -61,11 +61,14 @@ function createUpdateProgress(enabled: boolean): ProgressController {
const label = getStepLabel(step);
const duration = theme.muted(`(${formatDuration(step.durationMs)})`);
if (step.exitCode === 0) {
currentSpinner.stop(`${theme.success("\u2713")} ${label} ${duration}`);
} else {
currentSpinner.stop(`${theme.error("\u2717")} ${label} ${duration}`);
}
const icon =
step.status === "success"
? theme.success("\u2713")
: step.status === "skipped"
? theme.warn("\u25CB")
: theme.error("\u2717");
currentSpinner.stop(`${icon} ${label} ${duration}`);
currentSpinner = null;
},
};