(command: str)
| 60 | |
| 61 | |
| 62 | def _which(command: str) -> str: |
| 63 | try: |
| 64 | resolved = shutil.which(command) |
| 65 | return str(Path(resolved).resolve()) if resolved else "not-found" |
| 66 | except Exception: |
| 67 | return "not-found" |
| 68 | |
| 69 | |
| 70 | def _command_version(command: str, version_args: Sequence[str] = ("-version",)) -> str: |
no outgoing calls
no test coverage detected