Skip to content

Commit

Permalink
feat: added descriptions to mise run (#3460)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Dec 11, 2024
1 parent a3999eb commit abdb02c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 13 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,10 @@ impl Run {
);
let mut s = Select::new("Tasks")
.description("Select a tasks to run")
.filterable(true);
.filterable(true)
.filtering(true);
for t in tasks.values().filter(|t| !t.hide) {
s = s.option(DemandOption::new(&t.name));
s = s.option(DemandOption::new(&t.name).description(&t.description));
}
ctrlc::show_cursor_after_ctrl_c();
let name = s.run()?;
Expand Down

0 comments on commit abdb02c

Please sign in to comment.