ChristofferNissen / helmper

Import Helm Charts to OCI registries, optionally with vulnerability patching
https://christoffernissen.github.io/helmper/
Apache License 2.0
140 stars 5 forks source link

Feature: Implement exit codes #29

Closed tommy-dk closed 4 months ago

tommy-dk commented 4 months ago

Hello 👋

When running helmper as part of a CI pipeline it would be beneficial that helmper returns 0 when it runs without any errors and other exit codes if there's errors. This way it will be automatically detected by the CI pipeline and reported as such.

ChristofferNissen commented 4 months ago

Hey 👋

I thought i already got this implemented corrected but apparently not. I fully agree that is how it should work.

Apparently slog.Error does not set the exit code like log.Fatal does.

Will get it fixed tonight