MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / BuildEnvVariable

Function BuildEnvVariable

internal/plugins/plugin.go:344–350  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

342}
343
344func BuildEnvVariable(name string) string {
345 name = strings.TrimSpace(name)
346 name = strings.ToUpper(name)
347 name = strings.ReplaceAll(name, " ", "_")
348 name = strings.ReplaceAll(name, "-", "_")
349 return name
350}

Callers 2

AddSettingMethod · 0.85
BuildEnvVariablePrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected