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

Function uninstall_hooks_at

atomic-agent/src/hooks/codex.rs:410–417  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

408}
409
410fn uninstall_hooks_at(path: &Path) -> AgentResult<()> {
411 if !path.exists() {
412 return Ok(());
413 }
414 let mut config = read_hooks_file(path)?;
415 remove_atomic_hooks(&mut config.hooks);
416 write_hooks_file(path, &config)
417}
418
419fn read_hooks_file(path: &Path) -> AgentResult<CodexHooksFile> {
420 if !path.exists() {

Callers 2

uninstall_globalMethod · 0.85
uninstallMethod · 0.85

Calls 4

read_hooks_fileFunction · 0.85
write_hooks_fileFunction · 0.85
remove_atomic_hooksFunction · 0.70
existsMethod · 0.45

Tested by

no test coverage detected