1
0
Fork 0
mirror of https://github.com/Luzifer/cloudbox.git synced 2024-11-09 14:40:08 +00:00

Enable configuration through ENV

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-30 05:39:56 +02:00
parent 74a496e44a
commit 302834bb01
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -38,6 +38,7 @@ var (
) )
func init() { func init() {
rconfig.AutoEnv(true)
if err := rconfig.ParseAndValidate(&cfg); err != nil { if err := rconfig.ParseAndValidate(&cfg); err != nil {
log.Fatalf("Unable to parse commandline options: %s", err) log.Fatalf("Unable to parse commandline options: %s", err)
} }