node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Add --no-color flag to commands #546

Closed bpatram closed 6 years ago

bpatram commented 6 years ago

This PR simply adds a --no-color flag to each command that typically outputs color'd output as mentioned in #544. This will result in the output having no colors at all.

protoEvangelion commented 6 years ago

Everything looks good but I am not able to get the short hand "nc" to work. I tried other aliases but for whatever reason it is not picking it up. Did you have the same experience?

bpatram commented 6 years ago

@protoEvangelion yes, I was having issues with that as well. I think it may be because nc is not a single character.

protoEvangelion commented 6 years ago

Hmm looking into now.

protoEvangelion commented 6 years ago

Instead of modifying each cmd to utilize --no-color I made it into a global cmd. Also since it is a global cmd, I am keeping with the pattern by not assigning it an alias. Great work by the way! I think this will make it a lot easier for people trying to parse the output.