1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-09 16:30:04 +00:00

Support configuration through ENV vars

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-09-28 23:49:40 +02:00
parent 38fc7fa196
commit eba5ffe815
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -37,7 +37,8 @@ var (
) )
func init() { func init() {
if err := rconfig.Parse(&cfg); err != nil { rconfig.AutoEnv(true)
if err := rconfig.ParseAndValidate(&cfg); err != nil {
log.Fatalf("Unable to parse CLI parameters: %s", err) log.Fatalf("Unable to parse CLI parameters: %s", err)
} }