MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / merge_with_project_config

Method merge_with_project_config

src/cli/exec/mod.rs:40–51  ·  view source on GitHub ↗

Merge CLI args with project config if available CLI arguments take precedence over config values.

(mut self, project_config: Option<&ProjectConfig>)

Source from the content-addressed store, hash-verified

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
54fn build_orchestrator_config(

Callers 1

runFunction · 0.80

Calls 1

merge_walltime_optionsFunction · 0.85

Tested by

no test coverage detected