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

Method global_hooks_path

atomic-agent/src/hooks/grok.rs:112–114  ·  view source on GitHub ↗

Path to the global Atomic hooks file (`~/.grok/hooks/atomic.json`).

()

Source from the content-addressed store, hash-verified

110
111 /// Path to the global Atomic hooks file (`~/.grok/hooks/atomic.json`).
112 fn global_hooks_path() -> Option<PathBuf> {
113 dirs::home_dir().map(|h| h.join(GROK_DIR).join("hooks").join(ATOMIC_HOOKS_FILE))
114 }
115
116 /// Whether the `atomic-grok` package has installed hooks globally.
117 fn is_hooks_installed() -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected