diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-16 23:15:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 18:15:42 -0400 |
commit | 5bfe3eb8f49f5d6eed2e6d4436b8c75dd4b4ad26 (patch) | |
tree | a589b555b9ac700b7864b30c44b39b5a84269087 /cli/lib.rs | |
parent | d359789c529d3c7b5fab5471309eaa4b75fc0bfd (diff) |
feat(cli/installer.rs): Add DENO_INSTALL_ROOT (#4787)
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index 79fe312a1..467c05708 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -279,7 +279,7 @@ async fn info_command( async fn install_command( flags: Flags, - dir: Option<PathBuf>, + root: Option<PathBuf>, exe_name: String, module_url: String, args: Vec<String>, @@ -292,7 +292,7 @@ async fn install_command( let main_module = ModuleSpecifier::resolve_url_or_path(&module_url)?; let mut worker = create_main_worker(global_state, main_module.clone())?; worker.preload_module(&main_module).await?; - installer::install(flags, dir, &exe_name, &module_url, args, force) + installer::install(flags, root, &exe_name, &module_url, args, force) .map_err(ErrBox::from) } @@ -570,12 +570,12 @@ pub fn main() { } DenoSubcommand::Info { file } => info_command(flags, file).boxed_local(), DenoSubcommand::Install { - dir, + root, exe_name, module_url, args, force, - } => install_command(flags, dir, exe_name, module_url, args, force) + } => install_command(flags, root, exe_name, module_url, args, force) .boxed_local(), DenoSubcommand::Repl => run_repl(flags).boxed_local(), DenoSubcommand::Run { script } => run_command(flags, script).boxed_local(), |