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