refactor: rename RootConfig to CliOptions (#15007)

This commit is contained in:
David Sherret 2022-06-29 11:51:11 -04:00 committed by GitHub
parent 1328a56230
commit 8c4420c005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 138 additions and 132 deletions

View file

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