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

Function buildIDMap

apps/cli/internal/cli/deduplicate.go:316–322  ·  view source on GitHub ↗

buildIDMap groups tasks by their ID.

(tasks []*model.Task)

Source from the content-addressed store, hash-verified

314
315// buildIDMap groups tasks by their ID.
316func buildIDMap(tasks []*model.Task) map[string][]*model.Task {
317 m := make(map[string][]*model.Task)
318 for _, t := range tasks {
319 m[t.ID] = append(m[t.ID], t)
320 }
321 return m
322}
323
324// collectAllIDs returns a slice of all task IDs.
325func collectAllIDs(tasks []*model.Task) []string {

Callers 2

runDeduplicateFunction · 0.85
planReassignmentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected