()
| 80 | } |
| 81 | |
| 82 | func (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 | |
| 98 | func (c *yamlToolConfig) Set(scope Scope, keyPath string, value any) (string, error) { |
| 99 | parts, err := Parse(keyPath) |