Skip to content

Commit

Permalink
default tty output to true (--tty=false) to turn it off
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Jul 25, 2019
1 parent 67bad4f commit a389427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kapp/cmd/ui_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ type UIFlags struct {
}

func (f *UIFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory) {
cmd.PersistentFlags().BoolVar(&f.TTY, "tty", false, "Force TTY-like output")
// Default tty to true: https://github.com/k14s/kapp/issues/28
cmd.PersistentFlags().BoolVar(&f.TTY, "tty", true, "Force TTY-like output")
cmd.PersistentFlags().BoolVar(&f.Color, "color", true, "Set color output")
cmd.PersistentFlags().BoolVar(&f.JSON, "json", false, "Output as JSON")
cmd.PersistentFlags().BoolVarP(&f.NonInteractive, "yes", "y", false, "Assume yes for any prompt")
Expand Down

0 comments on commit a389427

Please sign in to comment.