Like the color.NoColor flag it would be good to have a global flag to force color output.
use case: Currently if I pipe the output to less the color is automatically disabled because it is not detected as a tty. I would like to do something like myApp --color | less -r
Like the
color.NoColor
flag it would be good to have a global flag to force color output.use case: Currently if I pipe the output to
less
the color is automatically disabled because it is not detected as a tty. I would like to do something likemyApp --color | less -r