Added slight change to fix some Windows JSON formatting.

Merge pull request #6 from DaanSelen/dev
This commit is contained in:
dselen
2025-02-14 13:54:51 +01:00
committed by GitHub

View File

@@ -31,12 +31,12 @@ class text_color:
italic = "\x1B[3m"
reset = "\x1B[0m"
def console(message: str, required: bool=False):
def console(message: str, final: bool=False):
'''
Helper function for terminal output, with a couple variables for the silent flag. Also clears terminal color each time.
'''
if required:
print(message + text_color.reset)
if final:
print(message) # Assuming final message, there is no need for clearing.
elif not args.silent:
print(message + text_color.reset)