Version: 3.x
rasa.shared.utils.cli
print_color
def print_color(*args: Any, color: Text) -> None
Print the given arguments to STDOUT in the specified color.
Arguments:
args
- A list of objects to be printed.color
- A textual representation of the color.
print_success
def print_success(*args: Any) -> None
Print the given arguments to STDOUT in green, indicating success.
Arguments:
args
- A list of objects to be printed.
print_info
def print_info(*args: Any) -> None
Print the given arguments to STDOUT in blue.
Arguments:
args
- A list of objects to be printed.
print_warning
def print_warning(*args: Any) -> None
Print the given arguments to STDOUT in a color indicating a warning.
Arguments:
args
- A list of objects to be printed.
print_error
def print_error(*args: Any) -> None
Print the given arguments to STDOUT in a color indicating an error.
Arguments:
args
- A list of objects to be printed.
print_error_and_exit
def print_error_and_exit(message: Text, exit_code: int = 1) -> NoReturn
Print an error message and exit the application.
Arguments:
message
- The error message to be printed.exit_code
- The program exit code, defaults to 1.