From db75462bd6f01d4a470c2ed7b5aad2f9a877f150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 16 Aug 2024 21:42:19 +0100 Subject: refactor: show release channel in `deno --version` (#25061) Also simplifies handling of various release channels in `deno upgrade` subcommand. --- cli/shared.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/shared.rs') 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", } } -- cgit v1.2.3