Skip to content

Commit 02dd7c7

Browse files
committed
fix: Move state pull output to stdout
Fixes #1645.
1 parent 9f54fa8 commit 02dd7c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/state.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cli
22

33
import (
4+
"fmt"
45
"io"
56
"os"
67
"time"
@@ -50,7 +51,7 @@ func statePull() *cobra.Command {
5051
}
5152

5253
if len(args) < 2 {
53-
cmd.Println(string(state))
54+
fmt.Fprintln(cmd.OutOrStdout(), string(state))
5455
return nil
5556
}
5657

0 commit comments

Comments
 (0)