| skipped 204 lines |
205 | 205 | | else: |
206 | 206 | | print(f"[*] {title} {message} on:") |
207 | 207 | | |
208 | | - | def warning(self, message, symbol="-"): |
209 | | - | msg = f"[{symbol}] {message}" |
| 208 | + | def _colored_print(self, fore_color, msg): |
210 | 209 | | if self.color: |
211 | | - | print(Style.BRIGHT + Fore.YELLOW + msg) |
| 210 | + | print(Style.BRIGHT + fore_color + msg) |
212 | 211 | | else: |
213 | 212 | | print(msg) |
| 213 | + | |
| 214 | + | def warning(self, message, symbol="-"): |
| 215 | + | msg = f"[{symbol}] {message}" |
| 216 | + | self._colored_print(Fore.YELLOW, msg) |
| 217 | + | |
| 218 | + | def info(self, message, symbol="*"): |
| 219 | + | msg = f"[{symbol}] {message}" |
| 220 | + | self._colored_print(Fore.BLUE, msg) |
214 | 221 | | |
215 | 222 | | def update(self, result, is_similar=False): |
216 | 223 | | """Notify Update. |
| skipped 83 lines |