Skip to content

Commit 01e52c5

Browse files
authored
Update cli.py to use echo_always() for method output_raw and output_dot (#2244)
* replace `echo()` with `echo_always()` in method `output_raw` and `output_dot` to address error: ``` NameError: name 'echo' is not defined ```
1 parent 377bd3f commit 01e52c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

metaflow/cli.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ def output_raw(obj, json):
206206
else:
207207
_graph = str(obj.graph)
208208
_msg = "Internal representation of the flow:"
209-
echo(_msg, fg="magenta", bold=False)
209+
echo_always(_msg, fg="magenta", bold=False)
210210
echo_always(_graph, err=False)
211211

212212

213213
@cli.command(help="Visualize the flow with Graphviz.")
214214
@click.pass_obj
215215
def output_dot(obj):
216-
echo("Visualizing the flow as a GraphViz graph", fg="magenta", bold=False)
217-
echo(
216+
echo_always("Visualizing the flow as a GraphViz graph", fg="magenta", bold=False)
217+
echo_always(
218218
"Try piping the output to 'dot -Tpng -o graph.png' to produce "
219219
"an actual image.",
220220
indent=True,

0 commit comments

Comments
 (0)