MCPcopy Create free account
hub / github.com/coder/envbuilder / convertOptionNameToEnv

Function convertOptionNameToEnv

devcontainer/features/features.go:267–271  ·  view source on GitHub ↗

See https://containers.dev/implementors/features/#option-resolution

(optionName string)

Source from the content-addressed store, hash-verified

265
266// See https://containers.dev/implementors/features/#option-resolution
267func convertOptionNameToEnv(optionName string) string {
268 optionName = matchNonWords.ReplaceAllString(optionName, "_")
269 optionName = matchPrefixDigitsAndUnderscores.ReplaceAllString(optionName, "")
270 return strings.ToUpper(optionName)
271}

Callers 1

CompileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected