MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_skill

Method with_skill

core/src/hooks/matcher.rs:103–106  ·  view source on GitHub ↗

Add skill filter (supports glob patterns)

(mut self, name: impl Into<String>)

Source from the content-addressed store, hash-verified

101
102 /// Add skill filter (supports glob patterns)
103 pub fn with_skill(mut self, name: impl Into<String>) -> Self {
104 self.skill = Some(name.into());
105 self
106 }
107
108 /// Check if an event matches this matcher
109 pub fn matches(&self, event: &HookEvent) -> bool {

Callers 3

register_hookMethod · 0.80
register_hookMethod · 0.80

Calls

no outgoing calls

Tested by 1