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

Method Load

internal/editorconfig/yaml_tool.go:56–62  ·  view source on GitHub ↗
(scope Scope)

Source from the content-addressed store, hash-verified

54}
55
56func (c *yamlToolConfig) Load(scope Scope) (map[string]any, string, error) {
57 path := c.PathFor(scope)
58 if path == "" {
59 return nil, "", fmt.Errorf("editorconfig: %s scope %s unsupported", c.spec.name, scope)
60 }
61 return loadYAML(path)
62}
63
64func loadYAML(path string) (map[string]any, string, error) {
65 data, err := os.ReadFile(path)

Callers

nothing calls this directly

Calls 2

PathForMethod · 0.95
loadYAMLFunction · 0.85

Tested by

no test coverage detected