MCPcopy
hub / github.com/docker/compose / childrenTasks

Method childrenTasks

cmd/display/tty.go:258–267  ·  view source on GitHub ↗
(parent string)

Source from the content-addressed store, hash-verified

256}
257
258func (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
270type lineData struct {

Callers 1

prepareLineDataMethod · 0.95

Calls 1

HasMethod · 0.80

Tested by

no test coverage detected