kubeconform/pkg
Calle Pettersson 7bf1e01dec
fix: change flag parse error handling to return errors instead of exiting (#107)
* fix: change flag parse error handling to return errors instead of exiting

Having ExitOnError in combination with SetOutput to a buffer instead of
stdout/stderr means flags.Parse output is swallowed and kubeconform silently
exits directly with exit code 2 instead of returning the error.

Setting ContinueOnError instead returns the error, and writes usage help to
the buffer, so error handling code in main is reached.

* Add test for parsing incorrect flags

Co-authored-by: Yann Hamon <yann@mandragor.org>
2022-06-19 18:38:52 +02:00
..
cache remove gosimple offences 2021-02-19 17:01:54 +01:00
config fix: change flag parse error handling to return errors instead of exiting (#107) 2022-06-19 18:38:52 +02:00
output feat(output/tap): Output qualified resource name 2021-12-17 19:18:55 -08:00
registry chore: print the url of failed download (#96) 2022-02-22 23:59:39 +01:00
resource feat(output/tap): Output qualified resource name 2021-12-17 19:18:55 -08:00
validator Update Junit tests, fix #45 2021-08-29 12:57:25 +02:00