INNER CODE UNIT · Python
_prefix_lines
flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:130
def _prefix_lines(prefix, txt):
"""
:param Text prefix:
:param Text txt:
:rtype: Text
"""
return "\n{}".format(prefix).join(txt.splitlines())
def _secho_workflow_status(status, nl=True):
red_phases = {
_core_execution_models.WorkflowExecutionPhase.FAILED,
_core_execution_models.WorkflowExecutionPhase.ABORTED,
_core_execution_models.WorkflowExecutionPhase.FAILING,
_core_execution_models.WorkflowExecutionPhase.TIMED_OUT,
}
yellow_phases = {
_core_execution_models.WorkflowExecutionPhase.QUEUED,