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

Function getEnvVarNames

internal/summary/summary.go:276–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274}
275
276func getEnvVarNames() map[string]bool {
277 envMap := make(map[string]bool)
278 for _, e := range os.Environ() {
279 parts := strings.SplitN(e, "=", 2)
280 if len(parts) > 0 {
281 envMap[parts[0]] = true
282 }
283 }
284 return envMap
285}
286
287// isEnvVar checks if a variable is from OS environment or auto-generated by Task.
288func isEnvVar(key string, envVars map[string]bool) bool {

Callers 2

printTaskVarsFunction · 0.85
printTaskEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…