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
feat: Add --exit-error (-e) flag #49
Conversation
Shouldn't this exit with 0, by default? |
It does, this is kinda for convenience so that you don't have to check this explicitly (#31), it's described better in committed docs, sorry if it wasn't clear from the PR:
...
|
63043f5
to
a1e2d83
Compare
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.
Better tests structure now too!
We should probably change all the tests to use the t.Fatalf, but thats for annother pr |
This PR adds
--exit-error
(-e
) flag for convenience. When enabled this will makekubent
return non-zero exit code in case any issues are found. Also, tests for exit codes are added.Fixes #31.