MCPcopy Create free account
hub / github.com/c4pt0r/pie / optional_skill_source

Function optional_skill_source

crates/coding-agent/src/commands.rs:749–752  ·  view source on GitHub ↗
(raw: Option<&String>)

Source from the content-addressed store, hash-verified

747}
748
749fn optional_skill_source(raw: Option<&String>) -> Result<Option<SkillSource>, String> {
750 raw.map(|s| parse_skill_source(s).map(Some))
751 .unwrap_or(Ok(None))
752}
753
754fn parse_skill_source(raw: &str) -> Result<SkillSource, String> {
755 match raw {

Callers 2

show_skillFunction · 0.85
set_skill_enabledFunction · 0.85

Calls 1

parse_skill_sourceFunction · 0.85

Tested by

no test coverage detected