diff options
author | bartOssh <lenart.consulting@gmail.com> | 2020-03-23 16:37:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 11:37:24 -0400 |
commit | ec0738606753b34525988fd9f58a23cb300b7bc0 (patch) | |
tree | 4a0bdc3585b2e64f50c739d49eba1e5cd9c3ee1d /cli/lib.rs | |
parent | a0ba476feef9dcc1b3bbd5144d2e48ef5053ee09 (diff) |
feat: first pass at "deno upgrade" (#4328)
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index c6bbe0b68..ba5152bd6 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -14,6 +14,8 @@ extern crate indexmap; #[cfg(unix)] extern crate nix; extern crate rand; +extern crate regex; +extern crate reqwest; extern crate serde; extern crate serde_derive; extern crate tokio; @@ -52,6 +54,7 @@ pub mod state; mod test_runner; pub mod test_util; mod tokio_util; +mod upgrade; pub mod version; mod web_worker; pub mod worker; @@ -75,6 +78,7 @@ use log::Record; use std::env; use std::io::Write; use std::path::PathBuf; +use upgrade::upgrade_command; use url::Url; static LOGGER: Logger = Logger; @@ -487,6 +491,9 @@ pub fn main() { let _r = std::io::stdout().write_all(types.as_bytes()); return; } + DenoSubcommand::Upgrade { force, dry_run } => { + upgrade_command(dry_run, force).boxed_local() + } _ => unreachable!(), }; |