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

Function GetEnvStrKey

pkg/util/shellutil/shellutil.go:261–267  ·  view source on GitHub ↗
(envStr string)

Source from the content-addressed store, hash-verified

259}
260
261func GetEnvStrKey(envStr string) string {
262 eqIdx := strings.Index(envStr, "=")
263 if eqIdx == -1 {
264 return envStr
265 }
266 return envStr[0:eqIdx]
267}
268
269var initStartupFilesOnce = &sync.Once{}
270

Callers 1

UpdateCmdEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected