From 6e7c265d700c360194ce81c8ee40425ad6cea5a1 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Tue, 10 Dec 2024 07:20:10 -0600 Subject: [PATCH] fix: hide hidden tasks in `mise run` selector UI (#3449) Fixes #3445 --- src/cli/run.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/run.rs b/src/cli/run.rs index caaffc3622..6104e1d179 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -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()?;