fix: Move state pull output to stdout (#3382)

* fix: Move state pull output to stdout

Fixes #1645.

* Update cli/state.go

Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com>

Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com>
This commit is contained in:
Kyle Carberry
2022-08-04 15:33:59 +00:00
committed by GitHub
co-authored by Abhineet Jain
parent 303b280e0e
commit ad20b23178
+2 -1
View File
@@ -1,6 +1,7 @@
package cli
import (
"fmt"
"io"
"os"
"time"
@@ -50,7 +51,7 @@ func statePull() *cobra.Command {
}
if len(args) < 2 {
cmd.Println(string(state))
_, _ = fmt.Fprintln(cmd.OutOrStdout(), string(state))
return nil
}