Returns all agents that have hooks currently installed.
(&self, repo_root: &Path)
| 431 | |
| 432 | /// Returns all agents that have hooks currently installed. |
| 433 | pub fn installed(&self, repo_root: &Path) -> Vec<&str> { |
| 434 | self.agents |
| 435 | .iter() |
| 436 | .filter(|a| a.is_installed(repo_root)) |
| 437 | .map(|a| a.name()) |
| 438 | .collect() |
| 439 | } |
| 440 | |
| 441 | /// Returns an iterator over all registered agent adapters. |
| 442 | pub fn iter(&self) -> impl Iterator<Item = &dyn AgentHook> { |