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

Ensure non-interactive mode returns appropriate exit code #5495

Merged
merged 1 commit into from Feb 2, 2016

Conversation

e-dard
Copy link
Contributor

@e-dard e-dard commented Feb 1, 2016

Fixes #5475.

ParseCommand now returns an error, instead of a bool. To indicate an empty command ErrBlankCommand is returned. In the case of non-interactive mode, errors from ParseCommand will result in a non-zero exit code.

Also some refactoring to the tests to improve coverage.

@corylanou
Copy link
Contributor

Looks good. Nice job on updating the error messages for the tests 😄. +1

@corylanou
Copy link
Contributor

Oh, almost forgot, please update the CHANGELOG.md as well with an entry for this PR.

@jsternberg
Copy link
Contributor

👍

e-dard added a commit that referenced this pull request Feb 2, 2016
Ensure non-interactive mode returns appropriate exit code
@e-dard e-dard merged commit 71ccbe5 into master Feb 2, 2016
@e-dard e-dard deleted the er-exit-code branch February 2, 2016 15:35
@jwilder jwilder added this to the 0.10.0 milestone Feb 2, 2016
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.

None yet

4 participants