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