Returns all agents that have hooks currently installed.
(&self, repo_root: &Path)
| 457 | |
| 458 | /// Returns all agents that have hooks currently installed. |
| 459 | pub fn installed(&self, repo_root: &Path) -> Vec<&str> { |
| 460 | self.agents |
| 461 | .iter() |
| 462 | .filter(|a| a.is_installed(repo_root)) |
| 463 | .map(|a| a.name()) |
| 464 | .collect() |
| 465 | } |
| 466 | |
| 467 | /// Returns an iterator over all registered agent adapters. |
| 468 | pub fn iter(&self) -> impl Iterator<Item = &dyn AgentHook> { |