diff --git a/poethepoet/task/base.py b/poethepoet/task/base.py index b3876cc21..cad333281 100644 --- a/poethepoet/task/base.py +++ b/poethepoet/task/base.py @@ -426,7 +426,10 @@ def _print_action(self, action: str, dry: bool): Print the action taken by a task just before executing it. """ min_verbosity = -1 if dry else 0 - self._ui.print_msg(f"Poe => {action}", min_verbosity) + arrow = "<=" if self.options.get("capture_stdout") else "=>" + self._ui.print_msg( + f"Poe {arrow} {action}", min_verbosity + ) class Error(Exception): pass diff --git a/tests/test_graph_execution.py b/tests/test_graph_execution.py index 4fb5b1b14..195c53d0c 100644 --- a/tests/test_graph_execution.py +++ b/tests/test_graph_execution.py @@ -3,8 +3,8 @@ def test_call_attr_func(run_poe_subproc): assert result.capture == ( "Poe => echo here we go...\n" "Poe => :\n" - "Poe => echo about\n" - "Poe => echo hello\n" + "Poe <= echo about\n" + "Poe <= echo hello\n" "Poe => echo Thinking about and\n" "Poe => echo hello and hello\n" )