Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Limit repository listing output based on stdout.isTTY #408

Merged
merged 1 commit into from
Sep 19, 2015

Conversation

tomzx
Copy link
Contributor

@tomzx tomzx commented Sep 19, 2015

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.

@tomzx tomzx force-pushed the features/tty-repo-listing branch from ea60edc to 0db3afe Compare September 19, 2015 00:57
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.
@tomzx tomzx force-pushed the features/tty-repo-listing branch from 0db3afe to f835436 Compare September 19, 2015 16:46
henvic added a commit that referenced this pull request Sep 19, 2015
Limit repository listing output based on stdout.isTTY
@henvic henvic merged commit 2b8858b into node-gh:master Sep 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants