Skip to content

Commit

Permalink
Merge branch 'master' into make-changefeed-sort-dir-visible
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand authored Jul 5, 2021
2 parents 66e8cca + 3c0be0d commit 88c92c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ func loop() {
command := newCliCommand()
command.SetArgs(args)
_ = command.ParseFlags(args)
command.SetOutput(os.Stdout)
command.SetOut(os.Stdout)
command.SetErr(os.Stdout)
if err = command.Execute(); err != nil {
command.Println(err)
}
Expand Down
3 changes: 2 additions & 1 deletion cmd/client_tso.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func newQueryTsoCommand() *cobra.Command {
return nil
},
}
command.SetOutput(os.Stdout)
command.SetOut(os.Stdout)
command.SetErr(os.Stdout)
return command
}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var rootCmd = &cobra.Command{

// Execute runs the root command
func Execute() {
// Ouputs cmd.Print to stdout.
// Outputs cmd.Print to stdout.
rootCmd.SetOut(os.Stdout)
if err := rootCmd.Execute(); err != nil {
rootCmd.Println(err)
Expand Down

0 comments on commit 88c92c0

Please sign in to comment.