Return text in red color for terminal output. Args: text: The text to format Returns: Text wrapped with ANSI red color codes
(text: str)
| 20 | |
| 21 | |
| 22 | def red_text(text: str) -> str: |
| 23 | """ |
| 24 | Return text in red color for terminal output. |
| 25 | |
| 26 | Args: |
| 27 | text: The text to format |
| 28 | |
| 29 | Returns: |
| 30 | Text wrapped with ANSI red color codes |
| 31 | """ |
| 32 | return f"\033[31m{text}\033[0m" |
| 33 | |
| 34 | |
| 35 | def yellow_text(text: str) -> str: |