| 75 | |
| 76 | @dataclass(slots=True) |
| 77 | class ShellCommandResult: |
| 78 | command: str |
| 79 | output: str |
| 80 | exit_code: int = 0 |
| 81 | timed_out: bool = False |
| 82 | |
| 83 | def to_dict(self) -> dict[str, Any]: |
| 84 | return { |
| 85 | "command": self.command, |
| 86 | "output": self.output, |
| 87 | "exit_code": self.exit_code, |
| 88 | "timed_out": self.timed_out, |
| 89 | } |
| 90 | |
| 91 | |
| 92 | class _HTMLTextParser(HTMLParser): |
no outgoing calls
no test coverage detected