Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/output.py')
-rw-r--r--archinstall/lib/output.py46
1 files changed, 36 insertions, 10 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index bd31b5b3..0395e2e7 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -238,20 +238,46 @@ def _stylize_output(
return f'\033[{ansi}m{text}\033[0m'
-def info(*msgs: str):
- log(*msgs, level=logging.INFO)
-
-
-def debug(*msgs: str):
- log(*msgs, level=logging.DEBUG)
+def info(
+ *msgs: str,
+ level: int = logging.INFO,
+ fg: str = 'white',
+ bg: Optional[str] = None,
+ reset: bool = False,
+ font: List[Font] = []
+):
+ log(*msgs, level=level, fg=fg, bg=bg, reset=reset, font=font)
+def debug(
+ *msgs: str,
+ level: int = logging.DEBUG,
+ fg: str = 'white',
+ bg: Optional[str] = None,
+ reset: bool = False,
+ font: List[Font] = []
+):
+ log(*msgs, level=level, fg=fg, bg=bg, reset=reset, font=font)
-def error(*msgs: str):
- log(*msgs, level=logging.ERROR, fg='red')
+def error(
+ *msgs: str,
+ level: int = logging.ERROR,
+ fg: str = 'red',
+ bg: Optional[str] = None,
+ reset: bool = False,
+ font: List[Font] = []
+):
+ log(*msgs, level=level, fg=fg, bg=bg, reset=reset, font=font)
-def warn(*msgs: str):
- log(*msgs, level=logging.WARNING, fg='yellow')
+def warn(
+ *msgs: str,
+ level: int = logging.WARN,
+ fg: str = 'yellow',
+ bg: Optional[str] = None,
+ reset: bool = False,
+ font: List[Font] = []
+):
+ log(*msgs, level=level, fg=fg, bg=bg, reset=reset, font=font)
def log(