MCPcopy
hub / github.com/spf13/viper / SafeWriteConfig

Function SafeWriteConfig

viper.go:1623–1623  ·  view source on GitHub ↗

SafeWriteConfig writes current configuration to file only if the file does not exist.

()

Source from the content-addressed store, hash-verified

1621
1622// SafeWriteConfig writes current configuration to file only if the file does not exist.
1623func SafeWriteConfig() error { return v.SafeWriteConfig() }
1624
1625func (v *Viper) SafeWriteConfig() error {
1626 if len(v.configPaths) < 1 {

Callers

nothing calls this directly

Calls 1

SafeWriteConfigMethod · 0.80

Tested by

no test coverage detected