fix(cli): report command failures once

This commit is contained in:
James
2026-07-20 09:04:03 -07:00
parent 619406a23b
commit 73d3b4e1f4
4 changed files with 68 additions and 123 deletions
+1 -4
View File
@@ -163,10 +163,7 @@ const commandLoaders = {
};
const subCommands = Object.fromEntries(
Object.entries(commandLoaders).map(([name, load]) => [
name,
trackCommandFailures(load, (error) => reportCommandFailure(command, error)),
]),
Object.entries(commandLoaders).map(([name, load]) => [name, trackCommandFailures(load)]),
);
const main = defineCommand({