MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Convert

Function Convert

pkg/util/encoding/encoding.go:31–36  ·  view source on GitHub ↗
(ID string)

Source from the content-addressed store, hash-verified

29var convertRegEx3 = regexp.MustCompile(`[^a-z0-9\-_]+`)
30
31func Convert(ID string) string {
32 ID = strings.ToLower(ID)
33 ID = convertRegEx1.ReplaceAllString(ID, "-")
34 ID = convertRegEx2.ReplaceAllString(ID, "")
35 return SafeConcatName(ID)
36}
37
38func ConvertCommands(ID string) string {
39 ID = strings.ToLower(ID)

Callers 5

addPullSecretConfigMethod · 0.92
GetDependencyIDFunction · 0.92
UpgradeMethod · 0.92
getMatchingDevPodFunction · 0.92
LoadRawMethod · 0.92

Calls 1

SafeConcatNameFunction · 0.85

Tested by

no test coverage detected