summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-12 14:54:28 -0400
committerGitHub <noreply@github.com>2023-04-12 14:54:28 -0400
commit9c255b2843b3446c7ac6592eb8e318972eb5f1f8 (patch)
tree02b02d4a7ce3077435c0add9774d053003110f15 /cli/main.rs
parent66a22d231af0681450b84d1bdbc0b585f0a728ee (diff)
refactor: `ProcState::build` -> `ProcState::from_flags` (#18672)
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 6d6199bda..849e0979c 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -69,13 +69,13 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> {
tools::run::eval_command(flags, eval_flags).await
}
DenoSubcommand::Cache(cache_flags) => {
- let ps = ProcState::build(flags).await?;
+ let ps = ProcState::from_flags(flags).await?;
ps.load_and_type_check_files(&cache_flags.files).await?;
ps.cache_module_emits()?;
Ok(0)
}
DenoSubcommand::Check(check_flags) => {
- let ps = ProcState::build(flags).await?;
+ let ps = ProcState::from_flags(flags).await?;
ps.load_and_type_check_files(&check_flags.files).await?;
Ok(0)
}