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

Function uninstall_hooks_at

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

Source from the content-addressed store, hash-verified

355}
356
357fn uninstall_hooks_at(path: &Path) -> AgentResult<()> {
358 if !path.exists() {
359 return Ok(());
360 }
361 let mut config = read_hooks_file(path)?;
362 remove_atomic_hooks(&mut config.hooks);
363 write_hooks_file(path, &config)
364}
365
366fn read_hooks_file(path: &Path) -> AgentResult<CodexHooksFile> {
367 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