aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/pyfunctions/gseout.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/pyfunctions/gseout.py b/scripts/pyfunctions/gseout.py
new file mode 100644
index 0000000..88729dc
--- /dev/null
+++ b/scripts/pyfunctions/gseout.py
@@ -0,0 +1,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)
+