#both produce a file and show stdout

1 messages · Page 1 of 1 (latest)

barren edge
#

Hey, I have a function (tofu plan) where I want to both show all the stdout (the human-readable plan) as well as produce a file (the machine-readable plan.) Is there some flag that forces a WithExec to always keep the output in the terminal?

urban grail
#

cc @hot terrace 🙂

hot terrace
#

Syncing my understanding: is the human-readable plan written to stdout, and the machine-readable plan written to a file? And you want your function to return the file, but you want the stdout displayed prominently in your trace?

barren edge
#

that's about right, yes!