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

Method LoadAll

internal/editorconfig/yaml_tool.go:82–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

PathForMethod · 0.95
loadYAMLFunction · 0.85

Tested by

no test coverage detected