Sherpa hooks are always "installed" when the TUI binary is present. We cannot easily introspect the TUI binary from here, so we return `true` whenever `~/.sherpa/sessions/` exists (i.e. the TUI has been run at least once).
(&self, _repo_root: &Path)
| 350 | /// `true` whenever `~/.sherpa/sessions/` exists (i.e. the TUI has been |
| 351 | /// run at least once). |
| 352 | fn is_installed(&self, _repo_root: &Path) -> bool { |
| 353 | Self::sherpa_sessions_dir() |
| 354 | .map(|p| p.is_dir()) |
| 355 | .unwrap_or(false) |
| 356 | } |
| 357 | |
| 358 | fn supported_hooks(&self) -> Vec<HookType> { |
| 359 | vec![ |