Skip to content

Commit

Permalink
fix: dont print bool
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-frank authored and tasn committed Jun 3, 2021
1 parent 46309c2 commit 44a8ed3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func init() {

// Global Flags
isTTY, _, err := utils.IsTTY(os.Stdout)
fmt.Fprintln(os.Stderr, isTTY)
cobra.CheckErr(err)
rootCmd.PersistentFlags().Bool("color", isTTY, "colorize output json") // on by default if TTY, off if not
cobra.CheckErr(viper.BindPFlag("color", rootCmd.PersistentFlags().Lookup("color"))) // allow color flag to be set in config
Expand Down

0 comments on commit 44a8ed3

Please sign in to comment.