color.py 649 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python3
  2. class Color:
  3. PURPLE = '\033[95m'
  4. CYAN = '\033[96m'
  5. DARKCYAN = '\033[36m'
  6. BLUE = '\033[94m'
  7. GREEN = '\033[92m'
  8. YELLOW = '\033[93m'
  9. RED = '\033[91m'
  10. BOLD = '\033[1m'
  11. UNDERLINE = '\033[4m'
  12. END = '\033[0m'
  13. def red(s):
  14. return Color.RED + str(s) + Color.END
  15. def green(s):
  16. return Color.GREEN + str(s) + Color.END
  17. def bold(s):
  18. return Color.BOLD + str(s) + Color.END
  19. def RB(s):
  20. return bold(red(s))
  21. def GB(s):
  22. return bold(green(s))
  23. if __name__ == '__main__':
  24. print(Color.GB('Please run the following cmd to restore the extra dbs AFTER the K8s is running:'))