Skip to content

Commit d4029ef

Browse files
sacca97copernico
authored andcommitted
added console print methods
1 parent a788275 commit d4029ef

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

prospector/client/cli/console.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ def __exit__(self, exc_type, exc_val, exc_tb):
3434
def set_status(self, status: MessageStatus):
3535
self.status = status
3636

37-
def print(self, note: str, status: Optional[MessageStatus] = None):
37+
def print__(self, note: str, status: Optional[MessageStatus] = None):
3838
print(f"{ConsoleWriter.indent}{Fore.WHITE}{note}", end="\n")
3939
if isinstance(status, MessageStatus):
4040
self.set_status(status)
41+
42+
@staticmethod
43+
def print(note: str, status: Optional[MessageStatus] = None):
44+
print(f"{ConsoleWriter.indent}{Fore.WHITE}{note}", end=" ")
45+
46+
@staticmethod
47+
def print_(status: MessageStatus):
48+
print(f"[{status.value}{status.name}{Style.RESET_ALL}]", end="\n")

0 commit comments

Comments
 (0)