(cmd)
| 95 | return repr(value) |
| 96 | |
| 97 | def command_to_text(cmd) -> str: |
| 98 | try: |
| 99 | if isinstance(cmd, (list, tuple)): |
| 100 | return " ".join(safe_text(x) for x in cmd) |
| 101 | return safe_text(cmd) |
| 102 | except Exception: |
| 103 | return repr(cmd) |
| 104 | |
| 105 | def ensure_logs_dir() -> Path: |
| 106 | try: |
no test coverage detected