Merge CLI args with project config if available CLI arguments take precedence over config values.
(mut self, project_config: Option<&ProjectConfig>)
| 38 | /// |
| 39 | /// CLI arguments take precedence over config values. |
| 40 | pub fn merge_with_project_config(mut self, project_config: Option<&ProjectConfig>) -> Self { |
| 41 | if let Some(project_config) = project_config { |
| 42 | self.walltime_args = ConfigMerger::merge_walltime_options( |
| 43 | &self.walltime_args, |
| 44 | project_config |
| 45 | .options |
| 46 | .as_ref() |
| 47 | .and_then(|o| o.walltime.as_ref()), |
| 48 | ); |
| 49 | } |
| 50 | self |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | fn build_orchestrator_config( |
no test coverage detected