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

Method detect_presence

atomic-agent/src/hooks/grok.rs:257–261  ·  view source on GitHub ↗
(&self, repo_root: &Path)

Source from the content-addressed store, hash-verified

255 }
256
257 fn detect_presence(&self, repo_root: &Path) -> bool {
258 repo_root.join(GROK_DIR).is_dir()
259 || Self::global_hooks_path().is_some_and(|p| p.exists())
260 || dirs::home_dir().is_some_and(|h| h.join(GROK_DIR).is_dir())
261 }
262
263 fn hook_verbs(&self) -> Vec<&str> {
264 vec![

Callers

nothing calls this directly

Calls 2

is_dirMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected