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

Method install_global

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

Source from the content-addressed store, hash-verified

126 }
127
128 pub fn install_global(&self, force: bool) -> AgentResult<usize> {
129 let path = Self::global_hooks_path().ok_or_else(|| AgentError::ConfigError {
130 operation: "resolve".to_string(),
131 path: PathBuf::from("~/.codex/hooks.json"),
132 reason: "Could not determine home directory for Codex hooks".to_string(),
133 })?;
134 install_hooks_at(&path, force)
135 }
136
137 pub fn uninstall_global(&self) -> AgentResult<()> {
138 if let Some(path) = Self::global_hooks_path() {

Callers 1

run_globalMethod · 0.45

Calls 1

install_hooks_atFunction · 0.85

Tested by

no test coverage detected