mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
co-authored by
Abhineet Jain
parent
303b280e0e
commit
ad20b23178
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user