-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Produce error on prompt in non-tty environment. #891
Conversation
Codecov Report
@@ Coverage Diff @@
## master #891 +/- ##
==========================================
+ Coverage 93.23% 93.26% +0.02%
==========================================
Files 26 26
Lines 1065 1069 +4
Branches 23 23
==========================================
+ Hits 993 997 +4
Misses 72 72 Continue to review full report at Codecov.
|
The rest looks good to me, we should be able to merge and release quickly. |
@SBoudrias Updated |
Perfect thanks! I'll make a new release soon. |
Hi, this PR causes the problem when used with
We provide name in flags on CI, but it break our CI with "Error: Prompts can not be meaningfully rendered in non-TTY environments" |
@PetrSnobelt Fixed in #896 |
Hi @SBoudrias and @jhorbulyk sorry but unfortunately this change introduces a regression since
it completely broke ipt in your latest patch release since it actually leverages the configurable |
The implementation which introduces thrown errors when using non-tty environments didn't took into account the fact that a different input stream can be provided via config. This changeset fixes it by introducing the appropriate checks and tests to ensure no further regressions. ref: SBoudrias#891
I'm somewhat confused as to where this issue stands. Looks like it was partly reverted in a future commit? Can I explicitly configure inquirer to fail in non-tty environments or is that no longer possible? Having hard time finding documentation about it. Thanks! |
My understanding is that after the latest merged PRs, inquirer will fail in non-tty environments but only if:
|
* Produce error on prompt in non-tty environment. * Fix build on node 8. * Fix line order. * Use Promise.reject()
Fixes #495