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)
| 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. |
| 102 | func 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. |
no test coverage detected
searching dependent graphs…