loading-cli icon indicating copy to clipboard operation
loading-cli copied to clipboard

colors are not maintained (and no option to force them) when used in a pipe

Open thatkookooguy opened this issue 1 year ago • 0 comments

I added this library to a command I wrote in node and it works great.

I added support for piping my command to one another. All colors set by me using libraries like chalk, colors or colorette are working regardless of if the command is in a pipe or not. loader specifically doesn't show the correct colors if the output is not a TTY

command run gs-cli generate company shows: image

command run gs-cli generate company | echo shows: image

is there a way to force colors? if not, maybe it will be nice to have an option like that

thatkookooguy avatar Jan 25 '24 03:01 thatkookooguy