MCPcopy Create free account
hub / github.com/auth0/auth0-cli / typeFor

Function typeFor

internal/cli/apps.go:1064–1079  ·  view source on GitHub ↗
(s *string)

Source from the content-addressed store, hash-verified

1062}
1063
1064func typeFor(s *string) *string {
1065 switch apiTypeFor(strings.ToLower(auth0.StringValue(s))) {
1066 case appTypeNative:
1067 return auth0.String("Native")
1068 case appTypeSPA:
1069 return auth0.String("Single Page Web Application")
1070 case appTypeRegularWeb:
1071 return auth0.String("Regular Web Application")
1072 case appTypeNonInteractive:
1073 return auth0.String("Machine to Machine")
1074 case appTypeResourceServer:
1075 return auth0.String("Resource Server")
1076 default:
1077 return nil
1078 }
1079}
1080
1081func commaSeparatedStringToSlice(s string) []string {
1082 joined := strings.Join(strings.Fields(s), "")

Callers 2

updateAppCmdFunction · 0.85
TestTypeForFunction · 0.85

Calls 1

apiTypeForFunction · 0.85

Tested by 1

TestTypeForFunction · 0.68