diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2020-11-29 20:00:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 20:00:35 +0100 |
commit | 973af61d8bb03c1709f61e456581d58386ed4952 (patch) | |
tree | 1176ac2827ec79b8ff6bfd17d92dcdd0866a8210 /cli/version.rs | |
parent | 47a16d21186bfcd7c03f81af6aa30be6620f640a (diff) |
feat(cli/tools/upgrade): canary support (#8476)
Diffstat (limited to 'cli/version.rs')
-rw-r--r-- | cli/version.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/version.rs b/cli/version.rs index eb1b3a003..694ffc44b 100644 --- a/cli/version.rs +++ b/cli/version.rs @@ -10,6 +10,10 @@ pub fn deno() -> String { }) } +pub fn is_canary() -> bool { + option_env!("DENO_CANARY").is_some() +} + pub fn v8() -> &'static str { deno_core::v8_version() } |