Skip to content

Commit

Permalink
Set version and info outputs to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenari committed Jan 6, 2023
1 parent 87906b2 commit 1c50665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/boxcli/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func InfoCmd() *cobra.Command {
}

func infoCmdFunc(cmd *cobra.Command, pkg string, flags infoCmdFlags) error {
box, err := devbox.Open(flags.config.path, cmd.ErrOrStderr())
box, err := devbox.Open(flags.config.path, cmd.OutOrStdout())
if err != nil {
return errors.WithStack(err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/boxcli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func VersionCmd() *cobra.Command {
}

func versionCmdFunc(cmd *cobra.Command, _ []string, flags versionFlags) error {
w := cmd.ErrOrStderr()
w := cmd.OutOrStdout()
v := getVersionInfo()
if flags.verbose {
fmt.Fprintf(w, "Version: %v\n", v.Version)
Expand Down

0 comments on commit 1c50665

Please sign in to comment.