Add ANSII colours to output commands for easy parsing

This commit is contained in:
2018-06-06 22:56:03 -04:00
parent ad1bf35837
commit 640f38c3aa
4 changed files with 68 additions and 30 deletions

View File

@ -31,8 +31,9 @@ import time
import atexit
import apscheduler.schedulers.background
# ANSII colours for output
class bcolours:
HEADER = '\033[95m'
PURPLE = '\033[95m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
@ -42,7 +43,7 @@ class bcolours:
UNDERLINE = '\033[4m'
def help():
print(bcolours.HEADER + bcolours.BOLD + bcolours.RED + "pvcd - Parallel Virtual Cluster management daemon" + bcolours.ENDC)
print(bcolours.BOLD + "pvcd - Parallel Virtual Cluster management daemon" + bcolours.ENDC)
# exit(0)
help()