Check if any matcher in a hook list contains an Atomic hook.
(matchers: &[GeminiHookMatcher])
| 812 | |
| 813 | /// Check if any matcher in a hook list contains an Atomic hook. |
| 814 | fn has_any_atomic_hook(matchers: &[GeminiHookMatcher]) -> bool { |
| 815 | matchers |
| 816 | .iter() |
| 817 | .any(|m| m.hooks.iter().any(|h| is_atomic_hook(&h.command))) |
| 818 | } |
| 819 | |
| 820 | /// Remove all Atomic hooks from a matcher list. |
| 821 | /// |
no test coverage detected