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

Method Len

taskfile/ast/vars.go:38–45  ·  view source on GitHub ↗

Len returns the number of variables in the Vars map.

()

Source from the content-addressed store, hash-verified

36
37// Len returns the number of variables in the Vars map.
38func (vars *Vars) Len() int {
39 if vars == nil || vars.om == nil {
40 return 0
41 }
42 defer vars.mutex.RUnlock()
43 vars.mutex.RLock()
44 return vars.om.Len()
45}
46
47// Get returns the value the the variable with the provided key and a boolean
48// that indicates if the value was found or not. If the value is not found, the

Callers 15

ToCacheMapMethod · 0.95
setupConcurrencyStateMethod · 0.45
ListTaskNamesMethod · 0.45
TestTaskVersionFunction · 0.45
TestRunOnceSharedDepsFunction · 0.45
itemsFromForFunction · 0.45
resolveMatrixRefsFunction · 0.45
productFunction · 0.45
promptDepsVarsMethod · 0.45
GetTaskListMethod · 0.45
closeMethod · 0.45
printTaskVarsFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestTaskVersionFunction · 0.36
TestRunOnceSharedDepsFunction · 0.36
TestArgsFunction · 0.36