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

Function findTaskByID

apps/cli/internal/web/handlers.go:381–388  ·  view source on GitHub ↗
(tasks []*model.Task, id string)

Source from the content-addressed store, hash-verified

379}
380
381func findTaskByID(tasks []*model.Task, id string) *model.Task {
382 for _, t := range tasks {
383 if t.ID == id {
384 return t
385 }
386 }
387 return nil
388}
389
390func handleUpdateTask(dp *DataProvider, readonly bool) http.HandlerFunc {
391 return func(w http.ResponseWriter, r *http.Request) {

Callers 3

handleUpdateTaskFunction · 0.70
reloadTaskFunction · 0.70
handleWorklogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected