MCPcopy Create free account
hub / github.com/driangle/taskmd / loadScopesConfig

Function loadScopesConfig

apps/cli/internal/cli/scope_filter.go:45–61  ·  view source on GitHub ↗

loadScopesConfig reads the scopes map from .taskmd.yaml configuration.

()

Source from the content-addressed store, hash-verified

43
44// loadScopesConfig reads the scopes map from .taskmd.yaml configuration.
45func loadScopesConfig() map[string]bool {
46 raw := viper.Get("scopes")
47 if raw == nil {
48 return nil
49 }
50
51 scopeMap, ok := raw.(map[string]any)
52 if !ok {
53 return nil
54 }
55
56 known := make(map[string]bool, len(scopeMap))
57 for name := range scopeMap {
58 known[name] = true
59 }
60 return known
61}

Callers 2

warnUnknownScopeFunction · 0.85
runTracksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected