Check if any matcher in a hook list contains an Atomic hook.
(matchers: &[GeminiHookMatcher])
| 778 | |
| 779 | /// Check if any matcher in a hook list contains an Atomic hook. |
| 780 | fn has_any_atomic_hook(matchers: &[GeminiHookMatcher]) -> bool { |
| 781 | matchers |
| 782 | .iter() |
| 783 | .any(|m| m.hooks.iter().any(|h| is_atomic_hook(&h.command))) |
| 784 | } |
| 785 | |
| 786 | /// Remove all Atomic hooks from a matcher list. |
| 787 | /// |
no test coverage detected