1
0
Fork 0
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:
sigmaSd 2022-10-31 11:48:28 +01:00 committed by GitHub
parent d76014192d
commit b07a753756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
} }