diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-09-04 11:12:21 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-03 22:12:21 -0400 |
commit | 249db0f7d91d5e895906078f92b7d31c76b96121 (patch) | |
tree | 3a9dc5f04ce1bd01b4762f06ff24dd6127f26ae5 /cli/main.rs | |
parent | e9908453df970b1cdf90483892bc9e794382fccc (diff) |
Handle typescript version in rust (#2855)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 682d1055f..948f8544e 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -398,6 +398,12 @@ fn run_script(flags: DenoFlags, argv: Vec<String>) { } } +fn version_command() { + println!("deno: {}", version::DENO); + println!("v8: {}", version::v8()); + println!("typescript: {}", version::typescript()); +} + fn main() { #[cfg(windows)] ansi_term::enable_ansi_support().ok(); // For Windows 10 @@ -425,7 +431,7 @@ fn main() { DenoSubcommand::Repl => run_repl(flags, argv), DenoSubcommand::Run => run_script(flags, argv), DenoSubcommand::Types => types_command(), - DenoSubcommand::Version => run_repl(flags, argv), + DenoSubcommand::Version => version_command(), DenoSubcommand::Xeval => xeval_command(flags, argv), } } |