Format output
(self, line: str)
| 158 | return False |
| 159 | |
| 160 | def format_output(self, line: str) -> str: |
| 161 | """Format output""" |
| 162 | filename = Path(self.filepath).name |
| 163 | |
| 164 | if self.color_output: |
| 165 | return f"{Colors.BLUE}[{filename}]{Colors.RESET} {line}" |
| 166 | else: |
| 167 | return f"[{filename}] {line}" |
| 168 | |
| 169 | def close(self): |
| 170 | """Close file""" |