Disable colorizing labels in issue list output#4079
Conversation
- Labels with dark color are not visible on a dark background - "Raw" `issue view` output should never output color, not even with CLICOLOR_FORCE=1
|
Hi again @mislav, I made a pr yesterday, but I wasn't sure if the goal was to make column labels support color so I closed it. Both pr's look similar, but I was wondering, to keep the code dry, would it be better to add a parameter to This way the package Just curious about your thoughts on it :) Also a |
@bchadwic Ah, you should not have closed that PR! Your approach there looks good and solves all the issues that my PR aims to solve as well. The reason I slightly prefer this PR (other than being obviously biased in favor of it) is that it splits the logic of rendering labels in Sure, these two label-rendering methods are now very similar, but I don't believe a little bit of duplication presents tech debt just yet. In fact, I would generally advise against trying to aggressively "dry" up pieces of code that look similar. If similar-looking code is used for different purposes (and commands |
|
@mislav thanks for sharing your insight!
I think this part drove you reasoning home for me. Dry seems like a good idea to me but I can see how in this scenario it may cause confusion later on. Thanks again 👍 |
issue viewoutput should never output colored labels, not even when CLICOLOR_FORCE is setFixes #4065, closes #4066, closes #4064
Partly reverts #3912 /cc @bchadwic