We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9fe31 commit fe77071Copy full SHA for fe77071
cmd/root.go
@@ -44,7 +44,10 @@ func New() *cobra.Command {
44
if nc, _ := cmd.Flags().GetBool("no-color"); nc {
45
ansi.DisableColors(true)
46
} else if !cmd.Flags().Changed("no-color") {
47
- ansi.DisableColors(!terminal.IsTerminal(int(os.Stdout.Fd())))
+ term := terminal.IsTerminal(int(os.Stdout.Fd()))
48
+ // https://github.com/databus23/helm-diff/issues/281
49
+ dumb := os.Getenv("TERM") == "dumb"
50
+ ansi.DisableColors(!term || dumb)
51
}
52
},
53
RunE: func(cmd *cobra.Command, args []string) error {
0 commit comments