-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Update sync to return non-zero exit code on dry run #1172
Conversation
Notes & suggestions:
EXIT_CODE_SUCCESS = 0
EXIT_CODE_ERROR = 2
|
Codecov Report
@@ Coverage Diff @@
## master #1172 +/- ##
=======================================
Coverage 99.50% 99.51%
=======================================
Files 36 36
Lines 2852 2860 +8
Branches 335 335
=======================================
+ Hits 2838 2846 +8
Misses 8 8
Partials 6 6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think code 1
would be more appropriate to not clash with code 2
, which is used by click in the usage error context.
Yeah, pre-defined constants are good 👍
No need for `check_call`
Exit with code 1
Exit with code 1
Hey @francisbrito! Thanks for your contribution! I took the liberty to address review comments and push changes to your branch since I'm going to release it soon. Feel free to fix "magic numbers" in a follow-up PR. |
Exit with code 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thanks @francisbrito for your first contribution! Good job! |
@atugushev You're welcome! (PS: Sorry for taking so long to reply, had a busy past week) |
Resolves #1166
Description
Update sync function and CLI script so that they return non-zero exit codes if they're
dry-run
option is given.Changelog-friendly one-liner: Update sync to return non-zero exit code on dry run
Contributor checklist