Improved install command
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user