File tree 2 files changed +8
-1
lines changed 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 54
54
55
55
56
56
class Terminal :
57
+ FATAL_EXIT_CODE = 255
58
+
57
59
try :
58
60
from colorama import Fore as Foreground
59
61
Foreground = {
@@ -135,6 +137,11 @@ def deinitColors(cls):
135
137
except :
136
138
pass
137
139
140
+ @classmethod
141
+ def fatalExit (cls , returnCode :int = 0 ):
142
+ """Exit the terminal application by uninitializing color support and returning a fatal exit code."""
143
+ cls .exit (cls .FATAL_EXIT_CODE if returnCode == 0 else returnCode )
144
+
138
145
@classmethod
139
146
def exit (cls , returnCode :int = 0 ):
140
147
"""Exit the terminal application by uninitializing color support and returning an exit code."""
Original file line number Diff line number Diff line change 50
50
51
51
setuptools .setup (
52
52
name = projectName ,
53
- version = "1.3.0 " ,
53
+ version = "1.3.1 " ,
54
54
55
55
author = "Patrick Lehmann" ,
56
56
author_email = "Paebbels@gmail.com" ,
You can’t perform that action at this time.
0 commit comments