We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ran into a problem doing something like this:
/tmp/padrino-test >padrino stop && echo 'Success!' => tmp/pids/server.pid not found! Success!
As you can see, padrino s wasn't running, yet it the command exited with 0.
padrino s
This is also the case when trying to exec invalid commands:
/tmp/padrino-test >padrino whatwhatwhat && echo 'Success!' Could not find command "whatwhatwhat". Success!
Of course this is (to some extent) a Thor issue.
The second problem can be easily solved by adding the following to Padrino::Cli::Launcher:
Padrino::Cli::Launcher
protected def exit_on_failure? true end
Of course this assumes you don't want to maintain any sort of dependency on the current behavior.
Fixing the first problem seems a tad ugly and/or invasive:
exit 1
Thor::Error
The text was updated successfully, but these errors were encountered:
1a87418
Thank you for your report! Please tell if there's more commands failing to convey their failure.
Sorry, something went wrong.
return proper exit codes in CLI, fixes #1849
9a7efda
ujifgc
No branches or pull requests
Ran into a problem doing something like this:
As you can see,
padrino s
wasn't running, yet it the command exited with 0.This is also the case when trying to exec invalid commands:
Of course this is (to some extent) a Thor issue.
The second problem can be easily solved by adding the following to
Padrino::Cli::Launcher
:Of course this assumes you don't want to maintain any sort of dependency on the current behavior.
Fixing the first problem seems a tad ugly and/or invasive:
exit 1
on failureThor::Error
on failures like the above and stuff like thisThe text was updated successfully, but these errors were encountered: