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

Method install_global

atomic-agent/src/hooks/codex.rs:144–151  ·  view source on GitHub ↗
(&self, force: bool)

Source from the content-addressed store, hash-verified

142 }
143
144 pub fn install_global(&self, force: bool) -> AgentResult<usize> {
145 let path = Self::global_hooks_path().ok_or_else(|| AgentError::ConfigError {
146 operation: "resolve".to_string(),
147 path: PathBuf::from("~/.codex/hooks.json"),
148 reason: "Could not determine home directory for Codex hooks".to_string(),
149 })?;
150 self.install_at(&path, force)
151 }
152
153 /// Install or migrate Atomic hooks at an explicit Codex hooks file.
154 ///

Callers 1

run_globalMethod · 0.45

Calls 1

install_atMethod · 0.80

Tested by

no test coverage detected