MCPcopy Create free account
hub / github.com/ddev/ddev / IsValidAppType

Function IsValidAppType

pkg/ddevapp/apptypes.go:569–575  ·  view source on GitHub ↗

IsValidAppType is a helper function to determine if an app type is valid, returning true if the given app type is valid and configured and false otherwise.

(apptype string)

Source from the content-addressed store, hash-verified

567// IsValidAppType is a helper function to determine if an app type is valid, returning
568// true if the given app type is valid and configured and false otherwise.
569func IsValidAppType(apptype string) bool {
570 if _, ok := appTypeMatrix[apptype]; !ok {
571 return false
572 }
573
574 return true
575}
576
577// GetValidAppTypes returns the valid apptype keys from the appTypeMatrix
578func GetValidAppTypes() []string {

Callers 4

TestAllowedAppTypesFunction · 0.92
handleMainConfigArgsFunction · 0.92
ValidateConfigMethod · 0.85
AppTypePromptMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestAllowedAppTypesFunction · 0.74