Skip to content

Commit

Permalink
doctor: display missing/extra shims (#1529)
Browse files Browse the repository at this point in the history
* doctor: display missing/extra shims

* Commit from GitHub Actions (test)

---------

Co-authored-by: mise[bot] <[email protected]>
  • Loading branch information
jdx and mise-en-dev authored Jan 26, 2024
1 parent 59c7216 commit a4b6418
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/cli/doctor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,18 @@ impl Doctor {
let cmd = style::eyellow("mise reshim");

if !missing.is_empty() {
self.checks
.push(format!("shims are missing, run {cmd} to create them"));
self.checks.push(formatdoc!(
"shims are missing, run {cmd} to create them
Missing shims: {missing}",
missing = missing.join(", ")
));
}

if !extra.is_empty() {
self.checks.push(format!(
"unused shims are present, run {cmd} to remove them"
self.checks.push(formatdoc!(
"unused shims are present, run {cmd} to remove them
Unused shims: {extra}",
extra = extra.join(", ")
));
}
}
Expand Down

0 comments on commit a4b6418

Please sign in to comment.