-
-
Notifications
You must be signed in to change notification settings - Fork 311
Fix addon CLI exit code propagation #1275
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingcliCLI commands / dispatchCLI commands / dispatchpriority: mediumNormalNormalstatus: integratedFix merged to main but NOT yet in a tagged releaseFix merged to main but NOT yet in a tagged release
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcliCLI commands / dispatchCLI commands / dispatchpriority: mediumNormalNormalstatus: integratedFix merged to main but NOT yet in a tagged releaseFix merged to main but NOT yet in a tagged release
Problem
lean-ctx addoncommand handlers should not terminate the process from inside addon-specific logic. The addon command already returns an integer status code, but the top-level CLI dispatch path must propagate that code so failures from addon subcommands reach the shell.Expected
process::exitinternallylean-ctx addon ...exits non-zero when addon command handling returns non-zeroValidation
lean-ctx addon unknown-actionshould return exit code 1 and print addon helpprocess::exitcalls should remain inrust/src/cli/addon_cmd.rs