From 0ce15f08c76f075948a132dd0f9f27855bd00a1d Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 1 Sep 2019 19:20:23 +0100 Subject: [PATCH] Remove DenoSubcommand::Install (#2846) --- cli/flags.rs | 9 ++++----- cli/main.rs | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cli/flags.rs b/cli/flags.rs index 1cf2c63beb..c9c7a59c77 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -693,7 +693,6 @@ pub enum DenoSubcommand { Eval, Fetch, Info, - Install, Repl, Run, Types, @@ -830,7 +829,7 @@ pub fn flags_from_vec( .collect(); argv.extend(flags); } - DenoSubcommand::Install + DenoSubcommand::Run } _ => unreachable!(), } @@ -1553,7 +1552,7 @@ mod tests { ..DenoFlags::default() } ); - assert_eq!(subcommand, DenoSubcommand::Install); + assert_eq!(subcommand, DenoSubcommand::Run); assert_eq!( argv, svec![ @@ -1583,7 +1582,7 @@ mod tests { ..DenoFlags::default() } ); - assert_eq!(subcommand, DenoSubcommand::Install); + assert_eq!(subcommand, DenoSubcommand::Run); assert_eq!( argv, svec![ @@ -1617,7 +1616,7 @@ mod tests { ..DenoFlags::default() } ); - assert_eq!(subcommand, DenoSubcommand::Install); + assert_eq!(subcommand, DenoSubcommand::Run); assert_eq!( argv, svec![ diff --git a/cli/main.rs b/cli/main.rs index 53daa84f32..1f24515677 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -421,7 +421,6 @@ fn main() { DenoSubcommand::Eval => eval_command(flags, argv), DenoSubcommand::Fetch => fetch_command(flags, argv), DenoSubcommand::Info => info_command(flags, argv), - DenoSubcommand::Install => run_script(flags, argv), DenoSubcommand::Repl => run_repl(flags, argv), DenoSubcommand::Run => run_script(flags, argv), DenoSubcommand::Types => types_command(),