refactor: enhance bcolors class with additional color properties
This commit is contained in:
@@ -7,4 +7,28 @@ class bcolors:
|
||||
FAIL = '\033[91m'
|
||||
ENDC = '\033[0m'
|
||||
BOLD = '\033[1m'
|
||||
UNDERLINE = '\033[4m'
|
||||
UNDERLINE = '\033[4m'
|
||||
|
||||
@property
|
||||
def RED(self):
|
||||
return self.FAIL
|
||||
|
||||
@property
|
||||
def GREEN(self):
|
||||
return self.OKGREEN
|
||||
|
||||
@property
|
||||
def BLUE(self):
|
||||
return self.OKBLUE
|
||||
|
||||
@property
|
||||
def CYAN(self):
|
||||
return self.OKCYAN
|
||||
|
||||
@property
|
||||
def YELLOW(self):
|
||||
return self.WARNING
|
||||
|
||||
@property
|
||||
def MAGENTA(self):
|
||||
return self.HEADER
|
||||
Reference in New Issue
Block a user