MCPcopy
hub / github.com/wavetermdev/waveterm / CopyAndAddToEnvMap

Function CopyAndAddToEnvMap

pkg/util/envutil/envutil.go:106–113  ·  view source on GitHub ↗
(envMap map[string]string, key string, val string)

Source from the content-addressed store, hash-verified

104}
105
106func CopyAndAddToEnvMap(envMap map[string]string, key string, val string) map[string]string {
107 newMap := make(map[string]string, len(envMap)+1)
108 for k, v := range envMap {
109 newMap[k] = v
110 }
111 newMap[key] = val
112 return newMap
113}
114
115func PruneInitialEnv(envMap map[string]string) map[string]string {
116 pruned := make(map[string]string)

Callers 1

StartJobFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected