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

Method path

core/src/hooks/matcher.rs:47–52  ·  view source on GitHub ↗

Create a matcher for a file path pattern

(pattern: impl Into<String>)

Source from the content-addressed store, hash-verified

45
46 /// Create a matcher for a file path pattern
47 pub fn path(pattern: impl Into<String>) -> Self {
48 Self {
49 path_pattern: Some(pattern.into()),
50 ..Default::default()
51 }
52 }
53
54 /// Create a matcher for a command pattern
55 pub fn command(pattern: impl Into<String>) -> Self {

Calls

no outgoing calls