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

Function buildTasksByIDMap

apps/cli/internal/cli/status.go:290–296  ·  view source on GitHub ↗
(tasks []*model.Task)

Source from the content-addressed store, hash-verified

288}
289
290func buildTasksByIDMap(tasks []*model.Task) map[string]*model.Task {
291 m := make(map[string]*model.Task, len(tasks))
292 for _, t := range tasks {
293 m[t.ID] = t
294 }
295 return m
296}
297
298func buildChildrenIndex(tasks []*model.Task) map[string][]*model.Task {
299 index := make(map[string][]*model.Task)

Callers 2

runStatusSingleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected