Skip to content

fix(ux): parent commands exit 0 on bare invocation#659

Merged
agents-squads[bot] merged 1 commit intodevelopfrom
fix/647-parent-command-exit-code
Mar 28, 2026
Merged

fix(ux): parent commands exit 0 on bare invocation#659
agents-squads[bot] merged 1 commit intodevelopfrom
fix/647-parent-command-exit-code

Conversation

@agents-squads
Copy link
Copy Markdown
Contributor

@agents-squads agents-squads bot commented Mar 28, 2026

Summary

  • Add .action(() => cmd.outputHelp()) to catalog, obs, release, and services parent commands
  • Commander.js parent commands with no action exit 1 on bare invocation — outputHelp() renders help and exits 0
  • cognition was already fixed (had action defined)

Testing

  • npm run build passes
  • npm test passes (1892 tests)

Closes #647

Add .action(() => cmd.outputHelp()) to catalog, obs, release, and
services parent commands. Commander.js parent commands with no action
default to exit 1 — outputHelp() renders help and exits 0.

Closes #647
@agents-squads agents-squads bot requested a review from kokevidaurre as a code owner March 28, 2026 16:28
@agents-squads agents-squads bot enabled auto-merge (squash) March 28, 2026 16:28
@agents-squads agents-squads bot merged commit 2463d9c into develop Mar 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants