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

Function BuildEnvVariable

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

Source from the content-addressed store, hash-verified

362}
363
364func BuildEnvVariable(name string) string {
365 name = strings.TrimSpace(name)
366 name = strings.ToUpper(name)
367 name = strings.ReplaceAll(name, " ", "_")
368 name = strings.ReplaceAll(name, "-", "_")
369 name = strings.ReplaceAll(name, ".", "_")
370 return name
371}
372
373// stdinReader is shared between prompts. A bufio.Reader reads ahead, so a
374// reader created for every question would drop the rest of the buffered input,

Callers 3

AddSettingMethod · 0.85
isSensitiveNameFunction · 0.85
BuildEnvVariablePrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected