-
Notifications
You must be signed in to change notification settings - Fork 23
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
exit codes for install
subcommands
#114
Comments
Which exit codes would you suggest? Related wp-cli/wp-cli#3577 |
After some thought about it, I got doubts about using exit codes for this. Maybe just check for what the command printed, e.g. is an "updated" line there or not to find out whether something was updated or not. |
@strarsis Oh, to clarify: are you suggesting a change to |
Mainly to language installs. When the language was already installed, and nothing changed. Or should be updated but was already up-to-date. |
@strarsis I think we should be consistent with the behavior for the other |
Describe your use case and the problem you are facing
Provisioning tools as
Ansible
can interpret the exit code for determining whether something was updated by the command.Describe the solution you'd like
The
install
subcommands should have different exit codes: Whether language files were updated or not and nothing was changed.The text was updated successfully, but these errors were encountered: