mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
Write all settings including overrides
This commit is contained in:
parent
0ea954cb0d
commit
dceace525a
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1325,7 +1325,7 @@ func marshalWriter(f afero.File, configType string) error {
|
|||
return v.marshalWriter(f, configType)
|
||||
}
|
||||
func (v *Viper) marshalWriter(f afero.File, configType string) error {
|
||||
c := v.config
|
||||
c := v.AllSettings()
|
||||
switch configType {
|
||||
case "json":
|
||||
b, err := json.MarshalIndent(c, "", " ")
|
||||
|
|
Loading…
Add table
Reference in a new issue