Merge remote-tracking branch 'origin' into go-gh-term

This commit is contained in:
Mislav Marohnić 2022-10-31 15:33:24 +01:00
commit 38d465b1da
No known key found for this signature in database
7 changed files with 1134 additions and 4 deletions

View file

@ -66,6 +66,7 @@ func mainRun() exitCode {
stderr := cmdFactory.IOStreams.ErrOut
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 {