From ad20b23178126918d2e9d1846a9c98ee9e1f1120 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 4 Aug 2022 10:33:59 -0500 Subject: [PATCH] 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 Co-authored-by: Abhineet Jain --- cli/state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/state.go b/cli/state.go index 385df01d77..498397a88c 100644 --- a/cli/state.go +++ b/cli/state.go @@ -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 }