Skip to content

fix(cli): propagate addon exit codes - #1282

Open
cedric013 wants to merge 1 commit into
yvgude:mainfrom
cedric013:fix/1275-addon-exit-code-propagation
Open

fix(cli): propagate addon exit codes#1282
cedric013 wants to merge 1 commit into
yvgude:mainfrom
cedric013:fix/1275-addon-exit-code-propagation

Conversation

@cedric013

Copy link
Copy Markdown
Contributor

Summary

  • make lean-ctx addon return status codes from addon subcommands instead of exiting inside addon-specific command modules
  • propagate the addon status code from the top-level CLI dispatch
  • keep invalid addon actions testable while preserving non-zero shell exit behavior

Closes #1275

Validation

  • cargo fmt --check
  • git grep std::process::exit(1) -- rust/src/cli/addon_cmd returns no matches
  • cargo check --bin lean-ctx was started locally but exceeded the useful local wait window; CI will run the full check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix addon CLI exit code propagation

1 participant