| 44 | |
| 45 | @dataclass(frozen=True) |
| 46 | class OutputConfig: |
| 47 | mode: OutputMode |
| 48 | |
| 49 | @property |
| 50 | def is_json(self) -> bool: |
| 51 | return self.mode is OutputMode.JSON |
| 52 | |
| 53 | @property |
| 54 | def is_plain(self) -> bool: |
| 55 | return self.mode is OutputMode.PLAIN |
| 56 | |
| 57 | @property |
| 58 | def is_pretty(self) -> bool: |
| 59 | return self.mode is OutputMode.PRETTY |
| 60 | |
| 61 | |
| 62 | def resolve_output_mode( |
no outgoing calls