1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

Remove DenoSubcommand::Install (#2846)

This commit is contained in:
Nayeem Rahman 2019-09-01 19:20:23 +01:00 committed by Ryan Dahl
parent df2f54b2a6
commit 0ce15f08c7
2 changed files with 4 additions and 6 deletions

View file

@ -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![

View file

@ -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(),