mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
refactor: rename RootConfig
to CliOptions
(#15007)
This commit is contained in:
parent
1328a56230
commit
8c4420c005
12 changed files with 138 additions and 132 deletions
|
@ -30,8 +30,8 @@ pub async fn execute_script(
|
|||
crate::colors::yellow("Warning"),
|
||||
);
|
||||
let ps = ProcState::build(flags).await?;
|
||||
let tasks_config = ps.config.resolve_tasks_config()?;
|
||||
let config_file_url = ps.config.maybe_config_file_specifier().unwrap();
|
||||
let tasks_config = ps.options.resolve_tasks_config()?;
|
||||
let config_file_url = ps.options.maybe_config_file_specifier().unwrap();
|
||||
let config_file_path = if config_file_url.scheme() == "file" {
|
||||
config_file_url.to_file_path().unwrap()
|
||||
} else {
|
||||
|
@ -52,7 +52,7 @@ pub async fn execute_script(
|
|||
|
||||
if let Some(script) = maybe_script {
|
||||
let additional_args = ps
|
||||
.config
|
||||
.options
|
||||
.argv()
|
||||
.iter()
|
||||
// surround all the additional arguments in double quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue