conventional-pre-commit icon indicating copy to clipboard operation
conventional-pre-commit copied to clipboard

colours on non-ansi terminals

Open wsourdeau opened this issue 1 year ago • 1 comments

Hello, I have discovered by reading the code that the colours codes are used unconditionnally. In the case where the output is piped to a process, those colour code might make the output less easy to read.

It would be nice to either provide a command-line argument to disable the colours and/or use a validation method that ensures that stdout is an actual terminal which supports colours codes.

wsourdeau avatar Dec 13 '23 21:12 wsourdeau

Hello @wsourdeau -- thank you for the suggestion, it's a great idea and I would welcome a PR! I think an argument to disable colors sounds like a good approach.

thekaveman avatar Jan 10 '24 16:01 thekaveman