MCPcopy Index your code
hub / github.com/go-task/task / Values

Method Values

taskfile/ast/tasks.go:111–119  ·  view source on GitHub ↗

Values returns an iterator that loops over all task values in the order specified by the sorter.

(sorter sort.Sorter)

Source from the content-addressed store, hash-verified

109// Values returns an iterator that loops over all task values in the order
110// specified by the sorter.
111func (t *Tasks) Values(sorter sort.Sorter) iter.Seq[*Task] {
112 return func(yield func(*Task) bool) {
113 for _, v := range t.All(sorter) {
114 if !yield(v) {
115 return
116 }
117 }
118 }
119}
120
121func (t1 *Tasks) Merge(t2 *Tasks, include *Include, includedTaskfileVars *Vars) error {
122 defer t2.mutex.RUnlock()

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected