MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetEnv

Function GetEnv

pkg/util/envutil/envutil.go:44–47  ·  view source on GitHub ↗
(envStr string, key string)

Source from the content-addressed store, hash-verified

42}
43
44func GetEnv(envStr string, key string) string {
45 envMap := EnvToMap(envStr)
46 return envMap[key]
47}
48
49func SetEnv(envStr string, key string, val string) (string, error) {
50 if strings.ContainsAny(key, "=\x00") {

Callers

nothing calls this directly

Calls 1

EnvToMapFunction · 0.85

Tested by

no test coverage detected