diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index 361c1484e3..d555de39b2 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -29,7 +29,7 @@ func Do(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) int rootCmd.SetArgs(args) rootCmd.SetIn(stdin) - rootCmd.SetErr(stderr) + rootCmd.SetOut(stdout) rootCmd.SetErr(stderr) err := rootCmd.Execute()