INNER CODE UNIT · Python
success
operatorai/modelstore · modelstore/utils/cli.py:64
def success(message: str):
"""Echos a message in green"""
_echo(message, MessageStatus.SUCCESS)
def failure(message: str):
"""Echos a message in red"""
_echo(message, MessageStatus.FAILURE)
def info(message: str):
"""Echos a message in blue"""
_echo(message, MessageStatus.INFO)
def assert_environ_exists(storage_type: str, keys: dict):
"""Checks that environment variables that are required to use the modelstore CLI
are set. If not, logs the failure and exits."""