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

Function uninstall_hooks_at

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

Source from the content-addressed store, hash-verified

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