Write all settings including overrides

This commit is contained in:
Herkermer Sherwood 2016-12-19 13:29:08 -08:00
parent 0ea954cb0d
commit dceace525a

View file

@ -1325,7 +1325,7 @@ func marshalWriter(f afero.File, configType string) error {
return v.marshalWriter(f, configType) return v.marshalWriter(f, configType)
} }
func (v *Viper) marshalWriter(f afero.File, configType string) error { func (v *Viper) marshalWriter(f afero.File, configType string) error {
c := v.config c := v.AllSettings()
switch configType { switch configType {
case "json": case "json":
b, err := json.MarshalIndent(c, "", " ") b, err := json.MarshalIndent(c, "", " ")