MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / resolve_agent

Function resolve_agent

src/context/tsk_config.rs:775–777  ·  view source on GitHub ↗

Resolves the agent from CLI flag or resolved config. Priority: CLI flag > resolved config agent (which already handles config layer merging).

(cli_agent: Option<String>, resolved_config: &ResolvedConfig)

Source from the content-addressed store, hash-verified

773///
774/// Priority: CLI flag > resolved config agent (which already handles config layer merging).
775pub fn resolve_agent(cli_agent: Option<String>, resolved_config: &ResolvedConfig) -> String {
776 cli_agent.unwrap_or_else(|| resolved_config.agent.clone())
777}
778
779#[cfg(test)]
780mod tests {

Callers 2

buildMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected