Returns all agents that have hooks currently installed.
(&self, repo_root: &Path)
| 402 | |
| 403 | /// Returns all agents that have hooks currently installed. |
| 404 | pub fn installed(&self, repo_root: &Path) -> Vec<&str> { |
| 405 | self.agents |
| 406 | .iter() |
| 407 | .filter(|a| a.is_installed(repo_root)) |
| 408 | .map(|a| a.name()) |
| 409 | .collect() |
| 410 | } |
| 411 | |
| 412 | /// Returns an iterator over all registered agent adapters. |
| 413 | pub fn iter(&self) -> impl Iterator<Item = &dyn AgentHook> { |