INNER CODE UNIT · Python
MessageStatus
operatorai/modelstore · modelstore/utils/cli.py:47
class MessageStatus(Enum):
"""
MessageStatus enumerates the different potential statuses
that we can print messages about in the CLI, and their
associated color
"""
SUCCESS: str = "green"
FAILURE: str = "red"
INFO: str = "blue"
def _echo(message: str, status: MessageStatus):
click.echo(click.style(message, fg=status.value), err=True)
def success(message: str):