feat: skill update REASON opt

This commit is contained in:
故璃
2026-07-27 16:25:49 +08:00
parent 67b7fa30a7
commit 51ed69596e
+12 -2
View File
@@ -120,11 +120,21 @@ export default defineCommand({
result.name,
result.status,
result.publishedAt ? result.publishedAt.slice(0, 10) : "-",
result.reason ?? "-",
]);
for (const line of formatTable(["NAME", "STATUS", "PUBLISHED", "REASON"], rows)) {
for (const line of formatTable(["NAME", "STATUS", "PUBLISHED"], rows)) {
emitBare(line);
}
// Footnotes for skipped / failed entries
const annotated = results.filter(
(result) => (result.status === "skipped" || result.status === "failed") && result.reason,
);
if (annotated.length > 0) {
emitBare("");
for (const result of annotated) {
emitBare(` ${result.name}: ${result.reason}`);
}
}
}
const failed = results.filter((result) => result.status === "failed");