-
Notifications
You must be signed in to change notification settings - Fork 558
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: implements exit code functionality #2673
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #2673 +/- ##
========================================
Coverage 30.00% 30.01%
========================================
Files 146 150 +4
Lines 9299 9406 +107
========================================
+ Hits 2790 2823 +33
- Misses 6077 6151 +74
Partials 432 432
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
cmd/cosign/errors/generate_docs.go
Outdated
// convieniently solved this problem prior: https://github.com/rancher/elemental-cli/blob/main/docs/generate_docs.go | ||
// there was no need to change (apart from some file paths) due to it | ||
// giving us exactly what we want without error. | ||
func GenerateExitCodeDocs() error { |
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.
Damn, beautiful code. Only a genius could write something as beautiful as this ;)
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.
Standing on the shoulders of giants as they say 😝
Looking really nice! |
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.
Awesome, thanks!
- adds exit code functionality that allows for cosign to return sensible exit codes for specific errors. the exit code document generation is automatically baked into the `docgen` step. - adds first exit code for no matching signatures and added two more ready for addition in future PR. - is backwards compatible and will throw exit code 1 for all non defined error types/exit code permutations. Signed-off-by: ChrisJBurns <[email protected]>
4bbed84
to
285f24a
Compare
@znewman01 All good to go, permitting the Workflow Gods are happy 😄 |
Ugh, I kicked off the workflows 3 days ago and the Windows one is hung. Re-running... |
- adds exit code functionality that allows for cosign to return sensible exit codes for specific errors. the exit code document generation is automatically baked into the `docgen` step. - adds first exit code for no matching signatures and added two more ready for addition in future PR. - is backwards compatible and will throw exit code 1 for all non defined error types/exit code permutations. Signed-off-by: ChrisJBurns <[email protected]>
Summary
docgen
step.make lint
as it was 4 versions behind the one used in Actions workflow.Addresses some of #948 (further PR's to address completely)
Signed-off-by: ChrisJBurns [email protected]