Improved install command

This commit is contained in:
2021-03-14 10:31:45 +01:00
parent 6094b11068
commit e7796e0371
3 changed files with 71 additions and 18 deletions

View File

@@ -1,3 +1,4 @@
from cpl.console import ForegroundColorEnum
from cpl.console.console import Console
@@ -7,3 +8,10 @@ class Error:
def error(message: str):
Console.error(message)
Console.error('Run \'cpl help\'\n')
@staticmethod
def warn(message: str):
Console.set_foreground_color(ForegroundColorEnum.yellow)
Console.write_line(message)
Console.set_foreground_color(ForegroundColorEnum.default)