mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-22 13:11:28 +00:00
31 lines
698 B
Python
31 lines
698 B
Python
|
# -*-:python; coding:utf-8; -*-
|
||
|
# author: Louis Abel <label@rockylinux.org>
|
||
|
# borrowed from empanadas
|
||
|
"""
|
||
|
Color classes
|
||
|
"""
|
||
|
# RPM utilities
|
||
|
__all__ = [
|
||
|
'Color',
|
||
|
]
|
||
|
|
||
|
# pylint: disable=too-few-public-methods
|
||
|
class Color:
|
||
|
"""
|
||
|
Supported colors
|
||
|
"""
|
||
|
RED = "\033[91m"
|
||
|
GREEN = "\033[92m"
|
||
|
PURPLE = "\033[95m"
|
||
|
CYAN = "\033[96m"
|
||
|
DARKCYAN = "\033[36m"
|
||
|
BLUE = "\033[94m"
|
||
|
YELLOW = "\033[93m"
|
||
|
UNDERLINE = "\033[4m"
|
||
|
BOLD = "\033[1m"
|
||
|
END = "\033[0m"
|
||
|
INFO = "[" + BOLD + GREEN + "INFO" + END + "] "
|
||
|
WARN = "[" + BOLD + YELLOW + "WARN" + END + "] "
|
||
|
FAIL = "[" + BOLD + RED + "FAIL" + END + "] "
|
||
|
STAT = "[" + BOLD + CYAN + "STAT" + END + "] "
|