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

Function GetTaskEnvString

internal/env/env.go:102–105  ·  view source on GitHub ↗

GetTaskEnvString returns the string value of a TASK_ prefixed env var. Returns the value and true if set (non-empty), or empty string and false if not set.

(key string)

Source from the content-addressed store, hash-verified

100// GetTaskEnvString returns the string value of a TASK_ prefixed env var.
101// Returns the value and true if set (non-empty), or empty string and false if not set.
102func GetTaskEnvString(key string) (string, bool) {
103 v := GetTaskEnv(key)
104 return v, v != ""
105}
106
107// GetTaskEnvStringSlice returns a comma-separated list from a TASK_ prefixed env var.
108// Returns the slice and true if set (non-empty), or nil and false if not set.

Callers 1

getEnvAsFunction · 0.92

Calls 1

GetTaskEnvFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…