(tasks devtodo2.TaskList, index string)
| 231 | } |
| 232 | |
| 233 | func 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 | |
| 241 | func expandRange(indexRange string) []string { |
| 242 | ranges := strings.Split(indexRange, "-") |
no test coverage detected