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

Function excludeByStatus

apps/cli/internal/mcp/graph_tool.go:87–100  ·  view source on GitHub ↗
(tasks []*model.Task, statuses []string)

Source from the content-addressed store, hash-verified

85}
86
87func excludeByStatus(tasks []*model.Task, statuses []string) []*model.Task {
88 excludeMap := make(map[string]bool, len(statuses))
89 for _, s := range statuses {
90 excludeMap[s] = true
91 }
92
93 filtered := make([]*model.Task, 0, len(tasks))
94 for _, task := range tasks {
95 if !excludeMap[string(task.Status)] {
96 filtered = append(filtered, task)
97 }
98 }
99 return filtered
100}

Callers 1

handleGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected