(command)
| 118 | |
| 119 | |
| 120 | def command_exists(command): |
| 121 | try: |
| 122 | result = subprocess.run([command, "--version"], capture_output=True, text=True) |
| 123 | return result.returncode == 0 |
| 124 | except Exception: |
| 125 | return False |
| 126 | |
| 127 | |
| 128 |
no test coverage detected