(raw_output: str, marker: str)
| 363 | |
| 364 | @staticmethod |
| 365 | def _strip_marker(raw_output: str, marker: str) -> str: |
| 366 | if marker not in raw_output: |
| 367 | return raw_output.rstrip() |
| 368 | prefix, _, _ = raw_output.partition(marker) |
| 369 | return prefix.rstrip() |
| 370 | |
| 371 | def _trim_output(self, command: str, output: str) -> str: |
| 372 | lines = output.splitlines() |