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

Method LoadAll

internal/editorconfig/toml_tool.go:79–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func (c *tomlToolConfig) LoadAll() map[string]ScopedConfig {
80 all := map[string]ScopedConfig{}
81 for _, scope := range []Scope{UserScope, ProjectScope} {
82 path := c.PathFor(scope)
83 if path == "" {
84 continue
85 }
86 data, _, err := loadTOML(path)
87 if err != nil {
88 continue
89 }
90 all[string(scope)] = ScopedConfig{Data: data, Path: path}
91 }
92 return all
93}
94
95func (c *tomlToolConfig) Set(scope Scope, keyPath string, value any) (string, error) {
96 parts, err := Parse(keyPath)

Callers

nothing calls this directly

Calls 2

PathForMethod · 0.95
loadTOMLFunction · 0.85

Tested by

no test coverage detected