#[dagger print] TUI output
1 messages · Page 1 of 1 (latest)
We can make it so the final phase of printing the result happens after the TUI closes instead of the focused progrock vertex. I've danced with this idea for the --help screens at least. You can also make it write to stdout and the tui at the same time if you want to preserve both.
When you pipe the command I think it should detect that in that descriptor, it's going to use stdout instead of the vertex, does it not? That's done here: https://github.com/dagger/dagger/blob/c495cd16121bfdf388ca648bcb4b4fe43138dbb0/cmd/dagger/functions.go#L128-L132
The default in cobra is os.Stdout and os.Stderr btw, so cmd.SetOut should return it to what it was.