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

Make CLI exit with code 1 when a command fails. #848

Merged
merged 2 commits into from
Dec 14, 2020
Merged

Conversation

LoicPoullain
Copy link
Member

Issue

When a CLI command fails and displays an error, the exit code is still 0. This is annoying when using commands in a CI because the pipeline is not notified.

Solution and steps

Exit with code 1 when a command fails

Checklist

  • Add/update/check docs (code comments and docs/ folder).
  • Add/update/check tests.
  • Update/check the cli generators.

@LoicPoullain LoicPoullain added this to Work In Progress in Issue tracking via automation Dec 14, 2020
@LoicPoullain LoicPoullain mentioned this pull request Dec 14, 2020
5 tasks
@LoicPoullain LoicPoullain merged commit 69b45da into v2-1-0 Dec 14, 2020
Issue tracking automation moved this from Work In Progress to Done / Closed This Release Dec 14, 2020
@LoicPoullain LoicPoullain deleted the exit-code-cli branch December 14, 2020 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Issue tracking
  
Done / Closed This Release
Development

Successfully merging this pull request may close these issues.

None yet

1 participant