(matchers: &[ClaudeHookMatcher])
| 184 | } |
| 185 | |
| 186 | pub(crate) fn has_any_atomic_hook(matchers: &[ClaudeHookMatcher]) -> bool { |
| 187 | matchers |
| 188 | .iter() |
| 189 | .any(|m| m.hooks.iter().any(|h| is_atomic_hook(&h.command))) |
| 190 | } |
| 191 | |
| 192 | pub(crate) fn is_atomic_hook(command: &str) -> bool { |
| 193 | command.contains(ATOMIC_HOOK_PREFIX) |
no test coverage detected