Merge pull request #6510 from dojutsu-user/no_color_6495
Fix: NO_COLOR setting not respected in gh upgrade notice
This commit is contained in:
commit
9ea76237a5
1 changed files with 1 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ func mainRun() exitCode {
|
|||
}
|
||||
if !cmdFactory.IOStreams.ColorEnabled() {
|
||||
surveyCore.DisableColor = true
|
||||
ansi.DisableColors(true)
|
||||
} else {
|
||||
// override survey's poor choice of color
|
||||
surveyCore.TemplateFuncsWithColor["color"] = func(style string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue