fix comments
This commit is contained in:
parent
09e61eaabc
commit
122c75f4be
@ -53,8 +53,8 @@ fn maestro_scores_filter<T: Topology + std::fmt::Debug + Send + Sync + 'static>(
|
||||
let mut scores_vec: Vec<Box<dyn Score<T>>> = 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<T: Topology + std::fmt::Debug + Send + Sync + 'static>(
|
||||
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<T: Topology + std::fmt::Debug + Send + Sync + 'static>(
|
||||
}
|
||||
}
|
||||
|
||||
// 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?;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user