optiopay / klar

Integration of Clair and Docker Registry
MIT License
506 stars 140 forks source link

Support command-line flags #129

Open nabadger opened 5 years ago

nabadger commented 5 years ago

Should we look at using something like https://github.com/spf13/viper

One of the issues I keep having is trying to remember the environment vars that klar supports ;)

Something like viper would support command line flags, environment vars, config files, and would also be self-documenting (via --help).

Good idea?

hashmap commented 5 years ago

Totally! We had like 2 env vars in the beginning.

nabadger commented 5 years ago

Cool, I'll work on a PR soon 👍