2432a2ba87
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. |
||
---|---|---|
.. | ||
messenger | ||
plugins | ||
util | ||
__init__.py | ||
__main__.py | ||
cli.py | ||
config.py | ||
context.py | ||
dispatcher.py | ||
plugin.py |