MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / resolve

Function resolve

atomic-cli/src/commands/intent/update.rs:194–201  ·  view source on GitHub ↗
(explicit: Option<&str>, variables: &[(&str, &str)])

Source from the content-addressed store, hash-verified

192 use super::*;
193
194 fn resolve(explicit: Option<&str>, variables: &[(&str, &str)]) -> CliResult<Option<String>> {
195 work_start_session(explicit, |name| {
196 Ok(variables
197 .iter()
198 .find(|(key, _)| *key == name)
199 .map(|(_, value)| value.to_string()))
200 })
201 }
202
203 #[test]
204 fn binds_any_agents_explicit_session_context_without_inference() {

Callers

nothing calls this directly

Calls 2

work_start_sessionFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected