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

Function LoadEnabled

internal/repoconfig/repoconfig.go:200–211  ·  view source on GitHub ↗

LoadEnabled is a convenience wrapper that filters out disabled entries.

(kind entities.Kind)

Source from the content-addressed store, hash-verified

198
199// LoadEnabled is a convenience wrapper that filters out disabled entries.
200func LoadEnabled(kind entities.Kind) (map[string]RepoEntry, error) {
201 all, err := LoadAll(kind)
202 if err != nil {
203 return nil, err
204 }
205 for k, v := range all {
206 if !v.IsEnabled() {
207 delete(all, k)
208 }
209 }
210 return all, nil
211}
212
213// ---------- per-source loaders -----------------------------------------------
214

Callers 5

dryRunAllReposFunction · 0.92
fetchAllReposFunction · 0.92
RefreshAllMethod · 0.92
TestLoadEnabledFiltersFunction · 0.85

Calls 2

LoadAllFunction · 0.85
IsEnabledMethod · 0.45

Tested by 1

TestLoadEnabledFiltersFunction · 0.68