converted into multifile for ease
This commit is contained in:
parent
bfdcf11212
commit
2a7cb7dcb7
9 changed files with 148 additions and 176 deletions
18
utils.py
Normal file
18
utils.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# ssh_manager/utils.py
|
||||
|
||||
class Colors:
|
||||
GREEN = "\033[0;32m"
|
||||
RED = "\033[0;31m"
|
||||
YELLOW = "\033[1;33m"
|
||||
CYAN = "\033[0;36m"
|
||||
BOLD = "\033[1m"
|
||||
RESET = "\033[0m"
|
||||
|
||||
def print_error(message):
|
||||
print(f"{Colors.RED}{Colors.BOLD}[✖] {Colors.RESET}{message}")
|
||||
|
||||
def print_warning(message):
|
||||
print(f"{Colors.YELLOW}{Colors.BOLD}[⚠] {Colors.RESET}{message}")
|
||||
|
||||
def print_info(message):
|
||||
print(f"{Colors.GREEN}{Colors.BOLD}[✔] {Colors.RESET}{message}")
|
Loading…
Add table
Add a link
Reference in a new issue