-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support input where there is both standard input and arguments #91
Conversation
Also add a `test:watch` for convenience
Allow custom `createInterface` implementation to be passed into `setupReadline` to be able to simulate no stdin.
Concatenates the two lists and puts stdin after args
To make sure no `eslint` rules conflict with the prettier config, we have [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier). This can be run with: | ||
|
||
npm run eslint-check | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 For what its worth, there's some similar prose here: https://github.com/Financial-Times/github/blob/master/README.md#code-formatting-and-linting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
THIS IS SO COOL 😎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat 👌
Rather than error when there are input repos from both standard input and arguments, just allow it and process both. Especially good for usage with
xargs
. Also made the arbitrary call to process standard input after arguments, to mimicxargs
usage.Main fix is in 1d14851, with other commits being clean up and refactoring steps. e1b0a68 also fixes an issue where we try to use
readline
when there is no standard input.Fixes #87
To test this
stdin
Returns stdin result
args
Returns arg result
stdin + args
Returns arg result, then stdin result (like
stdin + xargs + args
below)stdin + xargs
Returns stdin result
stdin + xargs + args
Returns arg result, then stdin result