Add --color and --no-color options.
By default, we auto-detect color mode (if it's a tty, color default on, else off). But you can force it either way.
This commit is contained in:
parent
f49d311471
commit
d82326a39d
6 changed files with 21 additions and 13 deletions
1
vars.py
1
vars.py
|
|
@ -17,6 +17,7 @@ VERBOSE = os.environ.get('REDO_VERBOSE', '') and 1 or 0
|
|||
XTRACE = os.environ.get('REDO_XTRACE', '') and 1 or 0
|
||||
KEEP_GOING = os.environ.get('REDO_KEEP_GOING', '') and 1 or 0
|
||||
LOG = atoi(os.environ.get('REDO_LOG', '1')) # defaults on
|
||||
COLOR = atoi(os.environ.get('REDO_COLOR', '1')) # defaults on
|
||||
# subprocesses mustn't pretty-print if a parent is running redo-log
|
||||
PRETTY = (not LOG) and atoi(os.environ.get('REDO_PRETTY', '1'))
|
||||
SHUFFLE = os.environ.get('REDO_SHUFFLE', '') and 1 or 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue