-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(runtime): two-tier subprocess API #11618
Conversation
My concerns with this API is that this has too much API surface and has multiple ways to do the same thing: |
On top of previous concerns, do we really need both |
That's on purpose to mimic Rust's API. There's a difference between those APIs - eg. if you use
Yes, there are situation where you might not want to collect output from the command - either discard it setting the pipes to Again - the idea was to mimic Rust's API which is very flexible yet it has a simple "happy path" that most of the users will use. |
But output() takes care of that: Lines 171 to 183 in 046ae0c
|
Then it would rather make sense to move stdin, stderr, and stdout options from the main constructor to what currently is the spawn() method |
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.
The ops are not marked as unstable.
Line 133 in 9af9577
|
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.
CI is failing on linting, but other than that LGTM!
Thanks for seeing this through @crowlKats! Very exciting to have this finally done. 🎉
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.
LGTM. You are most likely the winner in "the longest time to merge the PR" contest in Deno @crowlKats 🤣
@bartlomieju and i think second place is webgpu, which took 7 months 🤣 |
Fixes #11016
Left to do:
Things ideally to have before landing: