Expand description
Rule types, pattern matching, and file scanning.
A rule pairs a file pattern with a handler name. The Scanner
walks a pack directory and matches each file against the rule set.
Exclusion rules are checked first, then inclusion rules by priority
(descending). The first match wins.
Structs§
- Rule
- A rule mapping a file pattern to a handler.
- Rule
Match - A file that matched a rule during pack scanning.
- Scanner
- Scans pack directories and matches files against rules.
Functions§
- group_
by_ handler - Groups rule matches by handler name.
- handler_
execution_ order - Returns handler names in execution order.