Return a compact one-line exception detail for CLI output.
(exc: BaseException)
| 328 | |
| 329 | |
| 330 | def _cli_error_detail(exc: BaseException) -> str: |
| 331 | """Return a compact one-line exception detail for CLI output.""" |
| 332 | detail = str(exc).replace("\n", " ").strip() |
| 333 | return detail or exc.__class__.__name__ |
| 334 | |
| 335 | |
| 336 | def _cli_phase_label(phase: str, target_kind: str, target: str | None = None) -> str: |
no outgoing calls
no test coverage detected