MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / setStringFromEnvVariable

Function setStringFromEnvVariable

configuration/configuration.go:478–484  ·  view source on GitHub ↗
(s *string, key string)

Source from the content-addressed store, hash-verified

476}
477
478func setStringFromEnvVariable(s *string, key string) {
479 value, set := os.LookupEnv(key)
480 if set && value != "" {
481 *s = value
482 say.Debug("overriding " + key + "=" + *s)
483 }
484}
485
486func setOptionalStringFromEnvVariable(s *string, key string) {
487 value, set := os.LookupEnv(key)

Callers 1

Calls 1

DebugFunction · 0.92

Tested by

no test coverage detected