pulumi/sdk/go/common/util/cmdutil
Abhinav Gupta ae13d3c84a
cmd/stack output: Print to an io.Writer
The implementation of `pulumi stack output` prints everything
to a global `io.Writer`.
This makes testing its output a bit hacky and unparalellizable
because we have to hijack `os.Stdout` to capture the output.

This changes it the command implementation
and all the functions it relies on
to accept an `io.Writer` as an argument.

This allows us to delete the os.Stdout hijacking hack
that was introduced in #11952,
and have those tests run in parallel, writing to an in-memory buffer.
2023-01-25 15:17:18 -08:00
..
args.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
child.go Fix lint (#7915) 2021-09-07 16:41:17 -04:00
child_windows.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
console.go cmd/stack output: Print to an io.Writer 2023-01-25 15:17:18 -08:00
console_password.go crypto/ssh/terminal is deprecated 2023-01-12 09:07:34 -08:00
console_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
diag.go Address engine data races detected by `go test -race` (#10081) 2022-07-12 09:39:07 -07:00
exit.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
profile.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
spinner.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
trace.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00