diff --git a/cli/state.go b/cli/state.go index 385df01d7754c..498397a88ce9d 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 }