Skip to content

Commit 51ed695

Browse files
committed
feat: skill update REASON opt
1 parent 67b7fa3 commit 51ed695

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

  • packages/commands/src/commands/skill

packages/commands/src/commands/skill/update.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,21 @@ export default defineCommand({
120120
result.name,
121121
result.status,
122122
result.publishedAt ? result.publishedAt.slice(0, 10) : "-",
123-
result.reason ?? "-",
124123
]);
125-
for (const line of formatTable(["NAME", "STATUS", "PUBLISHED", "REASON"], rows)) {
124+
for (const line of formatTable(["NAME", "STATUS", "PUBLISHED"], rows)) {
126125
emitBare(line);
127126
}
127+
128+
// Footnotes for skipped / failed entries
129+
const annotated = results.filter(
130+
(result) => (result.status === "skipped" || result.status === "failed") && result.reason,
131+
);
132+
if (annotated.length > 0) {
133+
emitBare("");
134+
for (const result of annotated) {
135+
emitBare(` ${result.name}: ${result.reason}`);
136+
}
137+
}
128138
}
129139

130140
const failed = results.filter((result) => result.status === "failed");

0 commit comments

Comments
 (0)