Skip to main content

Module pattern_matcher

Module pattern_matcher 

Source

Structs§

PermissionRule
A parsed permission rule, e.g. “bash(git *)” → tool=“bash”, pattern=Some(“git *”)

Functions§

parse_rule
Parse a permission rule string like “bash(git *)”, “read”, “glob”.
rule_matches
Check if a permission rule matches a given tool invocation.