frameworksForType returns the list of unique frameworks available for the given app type.
(qsType string)
| 1254 | |
| 1255 | // frameworksForType returns the list of unique frameworks available for the given app type. |
| 1256 | func 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. |
no outgoing calls