MCPcopy
hub / github.com/go-task/task / Get

Function Get

internal/env/env.go:28–34  ·  view source on GitHub ↗
(t *ast.Task)

Source from the content-addressed store, hash-verified

26}
27
28func Get(t *ast.Task) []string {
29 if t.Env == nil {
30 return nil
31 }
32
33 return GetFromVars(t.Env)
34}
35
36func GetFromVars(env *ast.Vars) []string {
37 environ := os.Environ()

Callers 4

RunTaskMethod · 0.92
runCommandMethod · 0.92
IsUpToDateMethod · 0.92

Calls 1

GetFromVarsFunction · 0.85

Tested by

no test coverage detected