MCPcopy Create free account
hub / github.com/Driver-C/tryssh / UpdateConfig

Function UpdateConfig

pkg/config/loader.go:54–56  ·  view source on GitHub ↗

UpdateConfig writes the configuration to the default config path.

(conf *MainConfig)

Source from the content-addressed store, hash-verified

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

Callers 9

tryCopyWithoutCacheMethod · 0.92
SetAliasMethod · 0.92
UnsetAliasMethod · 0.92
updateConfigMethod · 0.92
tryLoginWithoutCacheMethod · 0.92
PruneCachesMethod · 0.92
updateConfigMethod · 0.92
executeEncryptFunction · 0.92
TestUpdateConfigFunction · 0.85

Calls 1

UpdateConfigAtPathFunction · 0.85

Tested by 1

TestUpdateConfigFunction · 0.68