-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back support for --no-color and --force-color
Per request, adding back support for these arguments. This was achieved by separating the ColorFormatter from the CliPrinter. Because CLI arguments aren't fully parsed when bootstrapping the CLI and there needs to be a resolved ColorFormatter to create an Environment to give to a comment, I added a ColorFormatter interface that is implemented by AnsiColorFormatter (formally Ansi). The CLI will create an instance of a ColorFormatter that defers whether color is supported or not by creating a custom ColorFormatter that queries StandardOptions#colorSetting before each write.
- Loading branch information
Showing
21 changed files
with
430 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.