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

Method with_command

core/src/hooks/matcher.rs:91–94  ·  view source on GitHub ↗

Add command pattern filter

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

Source from the content-addressed store, hash-verified

89
90 /// Add command pattern filter
91 pub fn with_command(mut self, pattern: impl Into<String>) -> Self {
92 self.command_pattern = Some(pattern.into());
93 self
94 }
95
96 /// Add session filter
97 pub fn with_session(mut self, id: impl Into<String>) -> Self {

Callers 4

test_combined_matchersFunction · 0.80
register_hookMethod · 0.80
register_hookMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_combined_matchersFunction · 0.64