You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some external tests that invoke some of the SDK's cobra commands.
Those tests often involve creating the command, calling cmd.SetOutput,
executing the command, and then inspecting its output.
This change updates the client context to prefer cmd.Output if set
(which should only happen in tests), falling back to stdout otherwise;
so it should not change any existing client-facing behavior, but it does
otherwise make command output testable.
0 commit comments