You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let index = Select::with_theme(&ColorfulTheme::default())
214
214
.with_prompt("Choose your UI template")
215
215
.items(
216
-
&templates
216
+
&templates_no_flavors
217
217
.iter()
218
218
.map(|t| t.select_text())
219
219
.collect::<Vec<_>>(),
220
220
)
221
221
.default(0)
222
222
.interact()
223
223
.unwrap();
224
-
let template = templates[index];
224
+
let template = templates_no_flavors[index];
225
225
226
226
// Prompt for flavors if the template has more than one flavor
227
227
let flavors = template.flavors(pkg_manager);
@@ -257,11 +257,11 @@ where
257
257
// If the package manager and the template are specified on the command line
258
258
// then almost all prompts are skipped so we need to make sure that the combination
259
259
// is valid, otherwise, we error and exit
260
-
if !pkg_manager.templates_all().contains(&template){
260
+
if !pkg_manager.templates().contains(&template){
261
261
eprintln!(
262
262
"{BOLD}{RED}error{RESET}: the {GREEN}{}{RESET} template is not suppported for the {GREEN}{pkg_manager}{RESET} package manager\n possible templates for {GREEN}{pkg_manager}{RESET} are: [{}]",
0 commit comments