Returns all agents that have hooks currently installed.
(&self, repo_root: &Path)
| 370 | |
| 371 | /// Returns all agents that have hooks currently installed. |
| 372 | pub fn installed(&self, repo_root: &Path) -> Vec<&str> { |
| 373 | self.agents |
| 374 | .iter() |
| 375 | .filter(|a| a.is_installed(repo_root)) |
| 376 | .map(|a| a.name()) |
| 377 | .collect() |
| 378 | } |
| 379 | |
| 380 | /// Returns an iterator over all registered agent adapters. |
| 381 | pub fn iter(&self) -> impl Iterator<Item = &dyn AgentHook> { |