diff options
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index 16c7942c6..9ccc8d022 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -282,7 +282,7 @@ async fn install_command( .map_err(ErrBox::from) } -async fn fetch_command(flags: Flags, files: Vec<String>) -> Result<(), ErrBox> { +async fn cache_command(flags: Flags, files: Vec<String>) -> Result<(), ErrBox> { let main_module = ModuleSpecifier::resolve_url_or_path("./__$deno$fetch.ts").unwrap(); let global_state = GlobalState::new(flags)?; @@ -531,8 +531,8 @@ pub fn main() { code, as_typescript, } => eval_command(flags, code, as_typescript).boxed_local(), - DenoSubcommand::Fetch { files } => { - fetch_command(flags, files).boxed_local() + DenoSubcommand::Cache { files } => { + cache_command(flags, files).boxed_local() } DenoSubcommand::Fmt { check, files } => { async move { fmt::format(files, check) }.boxed_local() |