diff --git a/harmony_cli/src/lib.rs b/harmony_cli/src/lib.rs index ee01161..bd10c0d 100644 --- a/harmony_cli/src/lib.rs +++ b/harmony_cli/src/lib.rs @@ -53,8 +53,8 @@ fn maestro_scores_filter( let mut scores_vec: Vec>> = match filter { Some(f) => scores_read .iter() - .map(|s| s.clone_box()) .filter(|s| s.name().contains(&f)) + .map(|s| s.clone_box()) .collect(), None => scores_read.iter().map(|s| s.clone_box()).collect(), }; @@ -113,7 +113,7 @@ pub async fn init( return Ok(()); } - // if no score to run provided, and list isn't specified, print help + // prompt user if --yes is not specified if !args.yes { let confirmation = Confirm::new( format!( @@ -131,7 +131,7 @@ pub async fn init( } } - // if all is specified, run all. Otherwise, run the first match or specified index + // Run filtered scores for s in scores_vec { println!("Running: {}", s.name()); maestro.interpret(s).await?;