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

Function ctx_str

atomic-cli/src/agent_error.rs:208–214  ·  view source on GitHub ↗
(err: &clap::Error, kind: ContextKind)

Source from the content-addressed store, hash-verified

206}
207
208fn ctx_str(err: &clap::Error, kind: ContextKind) -> Option<String> {
209 match err.get(kind) {
210 Some(ContextValue::String(s)) => Some(s.clone()),
211 Some(ContextValue::StyledStr(s)) => Some(s.to_string()),
212 _ => None,
213 }
214}
215
216fn ctx_list(err: &clap::Error, kind: ContextKind) -> Vec<String> {
217 match err.get(kind) {

Callers 2

reasonFunction · 0.85
renderFunction · 0.85

Calls 2

getMethod · 0.65
cloneMethod · 0.45

Tested by

no test coverage detected