Skip to content

Commit

Permalink
Fix rye tools list format issue introduced in #692 (#694)
Browse files Browse the repository at this point in the history
The last commit wrongly changed the format, restore it.
  • Loading branch information
j178 committed Feb 19, 2024
1 parent 570d677 commit 8b3703b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rye/src/cli/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ fn list_tools(cmd: ListCommand) -> Result<(), Error> {

for (tool, mut info) in tools {
if !info.valid {
echo!("{} {}", style(tool).cyan(), style(info.version).cyan());
echo!("{} ({})", style(tool).red(), style("seems broken").red());
continue;
}
if cmd.version_show {
echo!("{} ({})", style(tool).cyan(), info.version);
echo!("{} {}", style(tool).cyan(), style(info.version).cyan());
} else {
echo!("{}", style(tool).cyan());
}
Expand Down

0 comments on commit 8b3703b

Please sign in to comment.