MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_path

Method with_path

core/src/hooks/matcher.rs:85–88  ·  view source on GitHub ↗

Add path pattern filter

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

Source from the content-addressed store, hash-verified

83
84 /// Add path pattern filter
85 pub fn with_path(mut self, pattern: impl Into<String>) -> Self {
86 self.path_pattern = Some(pattern.into());
87 self
88 }
89
90 /// Add command pattern filter
91 pub fn with_command(mut self, pattern: impl Into<String>) -> Self {

Callers 3

test_builder_patternFunction · 0.80
register_hookMethod · 0.80
register_hookMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_builder_patternFunction · 0.64