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

Handle non-zero exit code #437

Closed
joshbetz opened this issue Jul 25, 2019 · 1 comment
Closed

Handle non-zero exit code #437

joshbetz opened this issue Jul 25, 2019 · 1 comment

Comments

@joshbetz
Copy link
Contributor

VIP CLI should send a non-zero exit code with the WP-CLI command exits with a non-zero code. We can test this with the following command.

WP_CLI::add_command( 'test exit-code', function() {
    WP_CLI::error( 'An error has occurred.' );
} );

Currently, VIP CLI always exits this command with an exit code of 0, but it should be 1.

This will likely involve work on the API and runner to pass the exit code along.

Related: #361

@dchymko dchymko self-assigned this Aug 8, 2019
@github-actions
Copy link
Contributor

This issue has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed.

This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants