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

Limit repository listing output based on stdout.isTTY #408

Closed tomzx closed 9 years ago

tomzx commented 9 years ago

This is a small first step toward making #357 a reality. This starts off by adding isTTY to the options so that commands may print or not some output based on the fact that the content is going to be piped out or not.

Initial implementation of repository listing for piping purposes. Add a isTTY value on the options to determine whether or not the command is executed in a TTY context or not. Based on this value, output may be printed or not. Set the default options.type based on whether we're listing a user or an organization repositories.