fresh-cat-90827
11/22/2022, 9:04 PMprint
from a `@rule`'s body, I get
21:02:46.12 [INFO] stdout: "hello!"
21:02:46.12 [INFO] stdout: "\n"
the goal_rule
has fancy from pants.engine.console import Console
, but how do I go about printing from the rule
? 😕bitter-ability-32190
11/22/2022, 9:05 PMlogger.warning(...)
See Pants' own codebasewitty-crayon-22786
11/22/2022, 9:32 PMConsole
, you want https://github.com/pantsbuild/pants/blob/a21d8cb9b90289b1ef09e76283ad3fff3d35d8d0/src/python/pants/engine/console.py#L63-L73Console
output should be used if that’s the “point of” your goal