(parent string)
| 256 | } |
| 257 | |
| 258 | func (w *ttyWriter) childrenTasks(parent string) iter.Seq[*task] { |
| 259 | return func(yield func(*task) bool) { |
| 260 | for _, id := range w.ids { // iterate on ids to enforce a consistent order |
| 261 | t := w.tasks[id] |
| 262 | if t.parents.Has(parent) { |
| 263 | yield(t) |
| 264 | } |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | // lineData holds pre-computed formatting for a task line |
| 270 | type lineData struct { |