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

Method Get

taskfile/ast/include.go:66–73  ·  view source on GitHub ↗

Get returns the value the the include with the provided key and a boolean that indicates if the value was found or not. If the value is not found, the returned include is a zero value and the bool is false.

(key string)

Source from the content-addressed store, hash-verified

64// that indicates if the value was found or not. If the value is not found, the
65// returned include is a zero value and the bool is false.
66func (includes *Includes) Get(key string) (*Include, bool) {
67 if includes == nil || includes.om == nil {
68 return &Include{}, false
69 }
70 defer includes.mutex.RUnlock()
71 includes.mutex.RLock()
72 return includes.om.Get(key)
73}
74
75// Set sets the value of the include with the provided key to the provided
76// value. If the include already exists, its value is updated. If the include

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected