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

Function reloadTask

apps/cli/internal/web/handlers.go:468–478  ·  view source on GitHub ↗
(dp *DataProvider, taskID string)

Source from the content-addressed store, hash-verified

466}
467
468func reloadTask(dp *DataProvider, taskID string) (*model.Task, error) {
469 tasks, err := dp.GetTasks()
470 if err != nil {
471 return nil, err
472 }
473 found := findTaskByID(tasks, taskID)
474 if found == nil {
475 return nil, fmt.Errorf("task not found after update: %s", taskID)
476 }
477 return found, nil
478}
479
480// WorklogEntryJSON is a single worklog entry for the API.
481type WorklogEntryJSON struct {

Callers 1

handleUpdateTaskFunction · 0.85

Calls 2

GetTasksMethod · 0.80
findTaskByIDFunction · 0.70

Tested by

no test coverage detected