samwho / spacer

CLI tool to insert spacers when command output stops
https://github.com/samwho/spacer
MIT License
853 stars 9 forks source link

Add --no-color option #4

Closed davc0n closed 1 year ago

samwho commented 1 year ago

Thanks so much for your contribution.

samwho commented 1 year ago

I noticed there was a line that added color that was missed in here, and it got me thinking: I wonder if owo_colors has some way of globally disabling colors.

Turns out it does: https://docs.rs/owo-colors/latest/owo_colors/fn.set_override.html. I've moved to using this. Sorry to immediately supersede the code you wrote, I am still very thankful for you taking the time to make this better. <3