Skip to content

cli: set exit_on_failure for all CLI classes#9094

Merged
Gargron merged 1 commit intomastodon:masterfrom
SerenityLaboratories:bugfix/exitcode-thor
Oct 25, 2018
Merged

cli: set exit_on_failure for all CLI classes#9094
Gargron merged 1 commit intomastodon:masterfrom
SerenityLaboratories:bugfix/exitcode-thor

Conversation

@ghost
Copy link
Copy Markdown

@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