Create a matcher for a file path pattern
(pattern: impl Into<String>)
| 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 { |
no outgoing calls