UpdateConfig writes the configuration to the default config path.
(conf *MainConfig)
| 52 | |
| 53 | // UpdateConfig writes the configuration to the default config path. |
| 54 | func UpdateConfig(conf *MainConfig) error { |
| 55 | return UpdateConfigAtPath(DefaultConfigPath, conf) |
| 56 | } |
| 57 | |
| 58 | // UpdateConfigAtPath writes the configuration to the specified config path. |
| 59 | func UpdateConfigAtPath(configPath string, conf *MainConfig) error { |