Skip to content

Commit

Permalink
fix: hide hidden tasks in mise run selector UI (#3449)
Browse files Browse the repository at this point in the history
Fixes #3445
  • Loading branch information
jdx authored Dec 10, 2024
1 parent b3c57e2 commit 6e7c265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ impl Run {
let mut s = Select::new("Tasks")
.description("Select a tasks to run")
.filterable(true);
for name in tasks.keys() {
s = s.option(DemandOption::new(name));
for t in tasks.values().filter(|t| !t.hide) {
s = s.option(DemandOption::new(&t.name));
}
ctrlc::show_cursor_after_ctrl_c();
let name = s.run()?;
Expand Down

0 comments on commit 6e7c265

Please sign in to comment.