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

Function is_atomic_hook

atomic-agent/src/hooks/gemini_cli.rs:809–811  ·  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

807
808/// Returns `true` if a hook command string is an Atomic hook.
809fn is_atomic_hook(command: &str) -> bool {
810 command.contains(ATOMIC_HOOK_PREFIX)
811}
812
813/// Check if any matcher in a hook list contains an Atomic hook.
814fn 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