mirror of
1
0
Fork 0
dotbot/dotbot
Bob Whitelock 2432a2ba87 Add `--force-color` option
This forces Dotbot to produce colored output, regardless of whether it
is outputting to a TTY.

This is useful to support use cases such as piping colored Dotbot output
into another program for formatting (e.g. I want to indent the output as
part of a larger installation script); this was not previously easy to
do as this would cause the output to lose its colored formatting.

This option cannot be provided at the same time as the existing
`--no-color` option, as there's no logical interpretation of what effect
providing both of these should have.

As part of this change I've refactored some existing code determining
whether output should be colored to where options are parsed, as this
made this change simpler and I think it makes sense for all this logic
to be performed in the same place.
2020-08-23 00:02:26 +01:00
..
messenger Add `--force-color` option 2020-08-23 00:02:26 +01:00
plugins Work around subprocess.call() issue on Windows 2020-05-01 11:52:51 -04:00
util Work around subprocess.call() issue on Windows 2020-05-01 11:52:51 -04:00
__init__.py Release 1.17.1 2020-07-24 08:42:12 -04:00
__main__.py Added support to run with python -m 2020-07-23 08:44:06 -07:00
cli.py Add `--force-color` option 2020-08-23 00:02:26 +01:00
config.py Fix compatibility with Python 3 2016-01-15 01:21:16 -05:00
context.py Add 'canonicalize-path' option to link 2020-01-03 22:35:13 +01:00
dispatcher.py Add --only and --except command-line arguments 2020-03-26 11:23:07 -04:00
plugin.py Add default options 2016-03-03 09:42:50 -05:00