mirror of
https://github.com/denoland/deno.git
synced 2025-01-09 15:48:16 -05:00
fix(tools): show correct upgrade command for upgrading canary (#16486)
This commit is contained in:
parent
d76014192d
commit
b07a753756
1 changed files with 8 additions and 4 deletions
|
@ -180,6 +180,10 @@ pub fn check_for_upgrades(cache_dir: PathBuf) {
|
||||||
"{} ",
|
"{} ",
|
||||||
colors::green("A new canary release of Deno is available.")
|
colors::green("A new canary release of Deno is available.")
|
||||||
);
|
);
|
||||||
|
eprintln!(
|
||||||
|
"{}",
|
||||||
|
colors::italic_gray("Run `deno upgrade --canary` to install it.")
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
eprint!(
|
eprint!(
|
||||||
"{} {} → {} ",
|
"{} {} → {} ",
|
||||||
|
@ -187,11 +191,11 @@ pub fn check_for_upgrades(cache_dir: PathBuf) {
|
||||||
colors::cyan(version::deno()),
|
colors::cyan(version::deno()),
|
||||||
colors::cyan(upgrade_version)
|
colors::cyan(upgrade_version)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"{}",
|
"{}",
|
||||||
colors::italic_gray("Run `deno upgrade` to install it.")
|
colors::italic_gray("Run `deno upgrade` to install it.")
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
update_checker.store_prompted();
|
update_checker.store_prompted();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue