Пример #1
0
def printError(msg):
    """Format and print error messages to the terminal."""
    print(bold(red(f"[ERROR] {msg}")))
    sys.exit(1)
Пример #2
0
def printExitMsg(msg):
    """Format and print exit messages to the terminal."""
    if not QUIET_OUTPUT:
        print(bold(red(msg)))

    sys.exit(1)
Пример #3
0
def printInfo(msg):
    """Format and print informational messages to the terminal."""
    if not QUIET_OUTPUT:
        print(bold(green(f'{msg}')))