Skip to main content

matches_tool

Function matches_tool 

Source
pub fn matches_tool(matcher: &Option<String>, tool_name: &str) -> bool
Expand description

Check whether a tool-name matcher pattern matches a given tool name.

Supported patterns:

  • None — matches everything (no filter).
  • "*" — matches everything (explicit wildcard).
  • "foo" — exact match.
  • "foo_*" — prefix wildcard: matches any name starting with "foo_".