SafeWriteConfig writes current configuration to file only if the file does not exist.
()
| 1621 | |
| 1622 | // SafeWriteConfig writes current configuration to file only if the file does not exist. |
| 1623 | func SafeWriteConfig() error { return v.SafeWriteConfig() } |
| 1624 | |
| 1625 | func (v *Viper) SafeWriteConfig() error { |
| 1626 | if len(v.configPaths) < 1 { |
nothing calls this directly
no test coverage detected