mirror of https://github.com/spf13/viper.git
Added keys from env and pflags to AllKeys
This commit is contained in:
parent
347c770cfb
commit
888e1e5f0b
8
viper.go
8
viper.go
|
@ -633,6 +633,14 @@ func (v *viper) AllKeys() []string {
|
||||||
m[key] = struct{}{}
|
m[key] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for key, _ := range v.env {
|
||||||
|
m[key] = struct{}{}
|
||||||
|
}
|
||||||
|
|
||||||
|
for key, _ := range v.pflags {
|
||||||
|
m[key] = struct{}{}
|
||||||
|
}
|
||||||
|
|
||||||
for key, _ := range v.override {
|
for key, _ := range v.override {
|
||||||
m[key] = struct{}{}
|
m[key] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue