mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 16:53:36 +05:00
refactor: add default to print_ok if no message is given
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -66,7 +66,7 @@ class Logger:
|
|||||||
print(f"{COLOR_WHITE}{start}{message}{RESET_FORMAT}", end=end)
|
print(f"{COLOR_WHITE}{start}{message}{RESET_FORMAT}", end=end)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def print_ok(msg, prefix=True, start="", end="\n") -> None:
|
def print_ok(msg: str = "Success!", prefix=True, start="", end="\n") -> None:
|
||||||
message = f"[OK] {msg}" if prefix else msg
|
message = f"[OK] {msg}" if prefix else msg
|
||||||
print(f"{COLOR_GREEN}{start}{message}{RESET_FORMAT}", end=end)
|
print(f"{COLOR_GREEN}{start}{message}{RESET_FORMAT}", end=end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user