-
-
Notifications
You must be signed in to change notification settings - Fork 544
schema input from stdin #870
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
Conversation
|
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.
Thank you! I’m in favor of this change and would like to see this merged. However, before we do, could you please add a test to cli.test.js
?
There is a test for stdout
already; please add one there for stdin
so we can be sure there are no regressions with this in the future.
Codecov Report
@@ Coverage Diff @@
## main #870 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 1 1
=========================================
Hits 1 1 Continue to review full report at Codecov.
|
@drwpow |
Nice test! It looks like we have a failure on windows:
Maybe we can do something different if os.platform is |
I would love this feature as well! I saw the readline-sync library on npmjs.org with 760'000 weekly downloads, but the logic seemed pretty complicated to get right in all environments, maybe pull in that library if you want stdin support for windows (and powershell +++) instead of managing it yourself? https://www.npmjs.com/package/readline-sync |
Sorry I'm late. I was able to fix it. |
Thanks for fixing! 🙏 Re-running the test now to see if it’s just flaky (and will fix in a followup) |
fix: #869