-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint/rpt: Handle no-color ttys (#1213)
This fixes #1211 by supporting the NO_COLOR environment variable and checking if the output is a tty before using color. The color.NoColor global is used as described here: https://github.com/fatih/color?tab=readme-ov-file#disableenable-color Signed-off-by: Charlie Egan <[email protected]>
- Loading branch information
1 parent
63b90e1
commit 234e36b
Showing
3 changed files
with
10 additions
and
0 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