MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_any_atomic_hook

Function has_any_atomic_hook

atomic-agent/src/hooks/claude_code/settings.rs:186–190  ·  view source on GitHub ↗
(matchers: &[ClaudeHookMatcher])

Source from the content-addressed store, hash-verified

184}
185
186pub(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
192pub(crate) fn is_atomic_hook(command: &str) -> bool {
193 command.contains(ATOMIC_HOOK_PREFIX)

Callers 1

is_installed_globalMethod · 0.70

Calls 2

is_atomic_hookFunction · 0.70
iterMethod · 0.45

Tested by

no test coverage detected