Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Propagate sub-command exit status #2927

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unique1o1
Copy link

Description 📣

This PR fixes the handling of subcommand exit statuses to ensure the Go program propagates the exit code correctly. Previously, subcommands returning non-zero exit codes were treated as errors, which could lead to misleading error messages and incorrect behavior. This update ensures the Go program exits with the same status code as the executed subcommand, aligning with expected behavior.

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

The following tests were performed to verify the changes:
1. Successful Subcommand: Verified that the Go program exits with 0 for subcommands that finish successfully.
2. Non-Zero Exit Code: Verified that the Go program exits with the same non-zero code as subcommands that terminate with a specific exit status.


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.

1 participant