mirror of
https://github.com/cheat/cheat.git
synced 2025-09-06 12:03:00 +02:00
Disable colorized output when CHEATCOLORS is not "true", or not set
This commit is contained in:
@ -8,7 +8,7 @@ def colorize(sheet_content):
|
|||||||
""" Colorizes cheatsheet content if so configured """
|
""" Colorizes cheatsheet content if so configured """
|
||||||
|
|
||||||
# only colorize if so configured
|
# only colorize if so configured
|
||||||
if not 'CHEATCOLORS' in os.environ:
|
if not 'CHEATCOLORS' in os.environ or os.environ.get('CHEATCOLORS') != 'true':
|
||||||
return sheet_content
|
return sheet_content
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user