mirror of
https://github.com/spf13/viper
synced 2024-12-23 03:57:01 +00:00
Added keys from env and pflags to AllKeys
This commit is contained in:
parent
347c770cfb
commit
888e1e5f0b
1 changed files with 8 additions and 0 deletions
8
viper.go
8
viper.go
|
@ -633,6 +633,14 @@ func (v *viper) AllKeys() []string {
|
|||
m[key] = struct{}{}
|
||||
}
|
||||
|
||||
for key, _ := range v.env {
|
||||
m[key] = struct{}{}
|
||||
}
|
||||
|
||||
for key, _ := range v.pflags {
|
||||
m[key] = struct{}{}
|
||||
}
|
||||
|
||||
for key, _ := range v.override {
|
||||
m[key] = struct{}{}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue