Skip to content

Commit

Permalink
Sort tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
thmshmm committed Feb 2, 2024
1 parent 62ef22e commit ae44fd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/taskfile/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ fn handle_includes(includes: Vec<Include>, current_path: &str) -> Result<Vec<Tas
}
}

tasks.sort_by(|a, b| a.name.cmp(&b.name));

Ok(tasks)
}

Expand All @@ -115,6 +117,8 @@ fn get_tasks(taskfile_yml: &Value) -> Result<Vec<Task>> {
bail!("failed to extract tasks")
}

tasks.sort_by(|a, b| a.name.cmp(&b.name));

Ok(tasks)
}

Expand Down

0 comments on commit ae44fd9

Please sign in to comment.