MCPcopy Create free account
hub / github.com/alecthomas/devtodo2 / resolveTaskReference

Function resolveTaskReference

cmd/todo2/main.go:233–239  ·  view source on GitHub ↗
(tasks devtodo2.TaskList, index string)

Source from the content-addressed store, hash-verified

231}
232
233func resolveTaskReference(tasks devtodo2.TaskList, index string) devtodo2.Task {
234 task := tasks.Find(index)
235 if task == nil {
236 devtodo2.Fatalf("invalid task index %s", index)
237 }
238 return task
239}
240
241func expandRange(indexRange string) []string {
242 ranges := strings.Split(indexRange, "-")

Callers 2

processActionFunction · 0.85
resolveTaskReferencesFunction · 0.85

Calls 2

FatalfFunction · 0.92
FindMethod · 0.65

Tested by

no test coverage detected