MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / legacyUnsetConfig

Function legacyUnsetConfig

internal/cli/config_cmd.go:322–333  ·  view source on GitHub ↗
(path, key string)

Source from the content-addressed store, hash-verified

320}
321
322func legacyUnsetConfig(path, key string) error {
323 cfg, err := loadConfigFile(path)
324 if err != nil {
325 return err
326 }
327 parts, err := editorconfig.Parse(key)
328 if err != nil {
329 return err
330 }
331 editorconfig.Unset(cfg, parts)
332 return writeConfigFile(path, cfg)
333}
334
335// legacyApplyValue is the real implementation used by the legacy `set` path.
336// It is kept separate from legacyUnsetConfig so the `set` and `unset` flows

Callers 1

configUnsetCommandMethod · 0.85

Calls 4

ParseFunction · 0.92
UnsetFunction · 0.92
loadConfigFileFunction · 0.85
writeConfigFileFunction · 0.70

Tested by

no test coverage detected