Return cached list of installed peer CLIs.
(self)
| 94 | self._available: Optional[List[PeerCLI]] = None |
| 95 | |
| 96 | def available(self) -> List[PeerCLI]: |
| 97 | """Return cached list of installed peer CLIs.""" |
| 98 | if self._available is None: |
| 99 | self._available = [c for c in PEER_REGISTRY if self._is_installed(c)] |
| 100 | return self._available |
| 101 | |
| 102 | def _is_installed(self, cli: PeerCLI) -> bool: |
| 103 | # shutil.which is the most reliable check — works even if |
no test coverage detected