MCPcopy Create free account
hub / github.com/go-task/task / All

Method All

taskfile/ast/include.go:94–99  ·  view source on GitHub ↗

All returns an iterator that loops over all task key-value pairs. Range calls the provided function for each include in the map. The function receives the include's key and value as arguments. If the function returns an error, the iteration stops and the error is returned.

()

Source from the content-addressed store, hash-verified

92// receives the include's key and value as arguments. If the function returns
93// an error, the iteration stops and the error is returned.
94func (includes *Includes) All() iter.Seq2[string, *Include] {
95 if includes == nil || includes.om == nil {
96 return func(yield func(string, *Include) bool) {}
97 }
98 return includes.om.AllFromFront()
99}
100
101// Keys returns an iterator that loops over all task keys.
102func (includes *Includes) Keys() iter.Seq[string] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected