Skip to content

fix: Move state pull output to stdout #3382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Move state pull output to stdout
Fixes #1645.
  • Loading branch information
kylecarbs committed Aug 4, 2022
commit 02dd7c79325c070755b23e91bf44c47a5181e4cd
3 changes: 2 additions & 1 deletion cli/state.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"fmt"
"io"
"os"
"time"
Expand Down Expand Up @@ -50,7 +51,7 @@ func statePull() *cobra.Command {
}

if len(args) < 2 {
cmd.Println(string(state))
fmt.Fprintln(cmd.OutOrStdout(), string(state))
return nil
}

Expand Down