-
Notifications
You must be signed in to change notification settings - Fork 622
[ts-command-line] Support stdin/piping #5135
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
Comments
Seems like a useful feature. How would you expect that to look from an API perspective? |
Ultimately the role of For example, for the UNIX convention, an argument that asks for a filename might be coded to accept |
I assumed you meant as one of the file inputs (as is the standard UNIX convention), did you mean that you want to support piping in the command line arguments? |
No, I think I meant the former. Having a built-in way to nab stdin as a built in would be handy, but I see what you mean. |
Summary
Command line should support
stdin
to support piping from other CLIsRepro steps
Crate a CLI, and try and pipe data into it like
eco something | tsx ./myCli.ts myCommand
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
node -v
)?The text was updated successfully, but these errors were encountered: