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

Function findTaskByID

apps/cli/internal/mcp/get.go:86–93  ·  view source on GitHub ↗
(id string, tasks []*model.Task)

Source from the content-addressed store, hash-verified

84}
85
86func findTaskByID(id string, tasks []*model.Task) *model.Task {
87 for _, t := range tasks {
88 if t.ID == id {
89 return t
90 }
91 }
92 return nil
93}
94
95func buildGetOutput(task *model.Task, allTasks []*model.Task) getOutput {
96 taskMap := make(map[string]*model.Task, len(allTasks))

Callers 4

handleSetFunction · 0.70
handleStatusFunction · 0.70
handleContextFunction · 0.70
handleGetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected