From a009de13ffa4319de89b0fcaf1ba54ae2524a9b6 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:15:19 +0000 Subject: [PATCH] fix: use task.display_name for `mise run` --- src/cli/run.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cli/run.rs b/src/cli/run.rs index cd3bdf9193..907829431d 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -860,11 +860,15 @@ fn prompt_for_task() -> Result { url = style::eunderline("https://mise.jdx.dev/tasks/") ); let mut s = Select::new("Tasks") - .description("Select a tasks to run") + .description("Select a task to run") .filtering(true) .filterable(true); for t in tasks.values().filter(|t| !t.hide) { - s = s.option(DemandOption::new(&t.name).description(&t.description)); + s = s.option( + DemandOption::new(&t.name) + .label(&t.display_name()) + .description(&t.description), + ); } ctrlc::show_cursor_after_ctrl_c(); match s.run() {