blob: 88729dca0af4aa60e8e289ef91a12e3f31051c2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/usr/bin/env python3.6
from sys import exit
# Output colors
class report_colors:
SRED = "\033[0;31m"
LRED = "\033[1;31m"
BLUE = "\033[0;34m"
YELLOW = "\033[0;33m"
CYAN = "\033[1;36m"
GREEN = "\033[0;32m"
PURPLE = "\033[2;35m"
RESET = "\033[0;0m"
# Die function
def die(error):
print(report_colors.SRED + error + report_colors.RESET)
exit(1)
# Yellow report function
def e_report(report):
print(report_colors.YELLOW + report + report_colors.RESET)
# Blue report function
def b_report(report):
print(report_colors.BLUE + report + report_colors.RESET)
# Green report function
def g_report(report):
print(report_colors.GREEN + report + report_colors.RESET)
# Purpule report function
def p_report(report):
print(report_colors.PURPLE + report + report_colors.RESET)
|