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

Function frameworksForType

internal/cli/quickstarts.go:1256–1271  ·  view source on GitHub ↗

frameworksForType returns the list of unique frameworks available for the given app type.

(qsType string)

Source from the content-addressed store, hash-verified

1254
1255// frameworksForType returns the list of unique frameworks available for the given app type.
1256func frameworksForType(qsType string) []string {
1257 seen := make(map[string]bool)
1258 var frameworks []string
1259 for key := range auth0.QuickstartConfigs {
1260 parts := strings.SplitN(key, ":", 3)
1261 if len(parts) >= 2 && parts[0] == qsType {
1262 fw := parts[1]
1263 if !seen[fw] {
1264 seen[fw] = true
1265 frameworks = append(frameworks, fw)
1266 }
1267 }
1268 }
1269 sort.Strings(frameworks)
1270 return frameworks
1271}
1272
1273// getQuickstartConfigKey resolves remaining missing prompts for App and API creation
1274// and returns the config map key for the selected framework.

Callers 2

TestFrameworksForTypeFunction · 0.85
resolveSetupInputsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestFrameworksForTypeFunction · 0.68