(path: &Path)
| 215 | } |
| 216 | |
| 217 | fn read_manifest(path: &Path) -> AgentResult<HookManifest> { |
| 218 | let content = std::fs::read_to_string(path).map_err(|e| AgentError::ConfigError { |
| 219 | operation: "read manifest".to_string(), |
| 220 | path: path.to_path_buf(), |
| 221 | reason: e.to_string(), |
| 222 | })?; |
| 223 | serde_json::from_str(&content).map_err(|e| AgentError::ConfigError { |
| 224 | operation: "parse manifest".to_string(), |
| 225 | path: path.to_path_buf(), |
| 226 | reason: e.to_string(), |
| 227 | }) |
| 228 | } |
| 229 | |
| 230 | fn expand_target(target: &str) -> AgentResult<PathBuf> { |
| 231 | if target == "~" { |
no outgoing calls
no test coverage detected