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

Function is_atomic_hook

atomic-agent/src/hooks/gemini_cli.rs:808–810  ·  view source on GitHub ↗

Returns `true` if a hook command string is an Atomic hook.

(command: &str)

Source from the content-addressed store, hash-verified

806
807/// Returns `true` if a hook command string is an Atomic hook.
808fn is_atomic_hook(command: &str) -> bool {
809 command.contains(ATOMIC_HOOK_PREFIX)
810}
811
812/// Check if any matcher in a hook list contains an Atomic hook.
813fn has_any_atomic_hook(matchers: &[GeminiHookMatcher]) -> bool {

Callers 2

has_any_atomic_hookFunction · 0.70
remove_atomic_hooksFunction · 0.70

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected