Skip to content

Commit

Permalink
creates ConfigurationOptions getter
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Jul 19, 2024
1 parent 8cedde3 commit 2d42cb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/turborepo-lib/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ impl ConfigurationOptions {
pub fn daemon(&self) -> Option<bool> {
self.daemon
}

pub fn env_mode(&self) -> EnvMode {
self.env_mode.unwrap_or_default()
}
}

// Maps Some("") to None to emulate how Go handles empty strings
Expand Down
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl<'a> TryFrom<OptsInputs<'a>> for RunOpts {
single_package: inputs.execution_args.single_package,
graph,
dry_run: inputs.run_args.dry_run,
env_mode: inputs.config.env_mode.unwrap_or_default(),
env_mode: inputs.config.env_mode(),
is_github_actions,
})
}
Expand Down

0 comments on commit 2d42cb9

Please sign in to comment.