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

cli: set exit_on_failure for all CLI classes #9094

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 25, 2018

rel: rails/thor#244
rel: https://stackoverflow.com/questions/17241932/ruby-thor-exit-status-in-case-of-an-error

This causes thor to exit with a non-zero status code on failure (e.g. when a required argument is missing), which makes writing scripts and kubernetes tooling much simpler.

@Gargron Gargron merged commit b9d7021 into mastodon:master Oct 25, 2018
@ghost ghost deleted the bugfix/exitcode-thor branch October 25, 2018 16:42
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