MCPcopy Create free account
hub / github.com/devspace-sh/devspace / isReservedFunctionName

Function isReservedFunctionName

pkg/devspace/config/versions/validate.go:105–116  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

103}
104
105func isReservedFunctionName(name string) bool {
106 switch name {
107 case "true", ":", "false", "exit", "set", "shift", "unset",
108 "echo", "printf", "break", "continue", "pwd", "cd",
109 "wait", "builtin", "trap", "type", "source", ".", "command",
110 "dirs", "pushd", "popd", "umask", "alias", "unalias",
111 "fg", "bg", "getopts", "eval", "test", "devspace", "[", "exec",
112 "return", "read", "shopt":
113 return true
114 }
115 return false
116}
117
118func validateFunctions(functions map[string]string) error {
119 for name := range functions {

Callers 1

validateFunctionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected