Skip to content

Commit

Permalink
fix: use task.display_name for mise run
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 15, 2024
1 parent 78c41b6 commit a009de1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,11 +860,15 @@ fn prompt_for_task() -> Result<Task> {
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() {
Expand Down

0 comments on commit a009de1

Please sign in to comment.