refactor: ProcState::build -> ProcState::from_flags (#18672)

This commit is contained in:
David Sherret 2023-04-12 14:54:28 -04:00 committed by GitHub
parent 66a22d231a
commit 9c255b2843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 31 additions and 32 deletions

View file

@ -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)
}