Skip to content

Commit

Permalink
Set cobra default output to stdout (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
blurfx authored Aug 6, 2023
1 parent 7f39f2f commit d516183
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/yorkie/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package main

import (
"os"

"github.com/spf13/cobra"

"github.com/yorkie-team/yorkie/cmd/yorkie/config"
Expand All @@ -40,6 +42,8 @@ func Run() int {
}

func init() {
rootCmd.SetOut(os.Stdout)
rootCmd.SetErr(os.Stderr)
rootCmd.AddCommand(project.SubCmd)
rootCmd.AddCommand(document.SubCmd)
// TODO(chacha912): set rpcAddr from env using viper.
Expand Down

0 comments on commit d516183

Please sign in to comment.