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

Method install_at

atomic-agent/src/hooks/codex.rs:149–151  ·  view source on GitHub ↗

Install or migrate Atomic hooks at an explicit Codex hooks file. Integration receipts record the exact settings target they manage. Using that path during upgrades avoids accidentally creating a repository-local hook file while leaving stale global hooks active.

(&self, path: &Path, force: bool)

Source from the content-addressed store, hash-verified

147 /// Using that path during upgrades avoids accidentally creating a
148 /// repository-local hook file while leaving stale global hooks active.
149 pub fn install_at(&self, path: &Path, force: bool) -> AgentResult<usize> {
150 install_hooks_at(path, force)
151 }
152
153 pub fn is_installed_global(&self) -> bool {
154 Self::global_hooks_path().is_some_and(|path| self.is_installed_at(&path))

Calls 1

install_hooks_atFunction · 0.85