diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2020-04-07 20:54:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 11:24:47 -0400 |
commit | caff550b6c6edf7f26ca9e2aa57e042479c36704 (patch) | |
tree | a5f6ed78002cbbf40b9bf35962ef45fa5f793ccc /cli/lib.rs | |
parent | 62726430bedba7cca4d98e7714f3a8b49db3e89e (diff) |
BREAKING: Rename 'deno fetch' subcommand to 'deno cache' (#4656)
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() |