@@ -20,7 +20,6 @@ const AVAILABLE_TEMPLATES: &str = "
2020 --basic=employee-scheduling — assign employees to shifts
2121
2222 List Variable (each entity owns an ordered sequence):
23- --list — generic list-variable skeleton (coming soon)
2423 --list=vehicle-routing — capacitated vehicle routing (CVRP)" ;
2524
2625pub fn run (
@@ -54,10 +53,6 @@ pub fn run(
5453 skip_readme,
5554 quiet,
5655 ) ,
57- Template :: List => Err ( CliError :: with_hint (
58- "the generic list-variable skeleton is not yet available" ,
59- format ! ( "Available templates:{AVAILABLE_TEMPLATES}" ) ,
60- ) ) ,
6156 Template :: ListVehicleRouting => scaffold (
6257 name,
6358 & crate_name,
@@ -350,7 +345,6 @@ fn generate_readme(project_name: &str, _crate_name: &str, label: &str) -> String
350345pub enum Template {
351346 Basic ,
352347 BasicEmployeeScheduling ,
353- List ,
354348 ListVehicleRouting ,
355349}
356350
@@ -359,7 +353,10 @@ impl Template {
359353 match ( basic, list, specialization) {
360354 ( true , false , None ) => Ok ( Template :: Basic ) ,
361355 ( true , false , Some ( "employee-scheduling" ) ) => Ok ( Template :: BasicEmployeeScheduling ) ,
362- ( false , true , None ) => Ok ( Template :: List ) ,
356+ ( false , true , None ) => Err ( CliError :: with_hint (
357+ "the --list template requires a specialization" ,
358+ "Use --list=vehicle-routing" . to_string ( ) ,
359+ ) ) ,
363360 ( false , true , Some ( "vehicle-routing" ) ) => Ok ( Template :: ListVehicleRouting ) ,
364361 ( false , false , None ) => Err ( CliError :: with_hint (
365362 "specify a template flag" ,
0 commit comments