diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-16 21:42:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 22:42:19 +0200 |
commit | db75462bd6f01d4a470c2ed7b5aad2f9a877f150 (patch) | |
tree | 949922348def7305e73462ef2810648998c6316f /cli/shared.rs | |
parent | ff4226a3cd20ef6cfb155ca206c745785b6e098f (diff) |
refactor: show release channel in `deno --version` (#25061)
Also simplifies handling of various release channels in `deno upgrade`
subcommand.
Diffstat (limited to 'cli/shared.rs')
-rw-r--r-- | cli/shared.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/shared.rs b/cli/shared.rs index d9375814e..d02c2762e 100644 --- a/cli/shared.rs +++ b/cli/shared.rs @@ -16,17 +16,17 @@ pub enum ReleaseChannel { #[allow(unused)] Lts, - /// Release candidate, poiting to a git hash + /// Release candidate, eg. 1.46.0-rc.0, 2.0.0-rc.1 Rc, } impl ReleaseChannel { pub fn name(&self) -> &str { match self { - Self::Stable => "latest", + Self::Stable => "stable", Self::Canary => "canary", Self::Rc => "release candidate", - Self::Lts => "LTS (long term support)", + Self::Lts => "long term support", } } |