Open rivy opened 4 months ago
I propose that we allow ReadableStream
as stdin
, but only if that ReadableStream
comes from FsFile#readable
, Deno.stdin.readable
, Deno.Conn#readable
, or Deno.ChildProcess#stdout
, or Deno.ChildProcess#stderr
. We initially error for any user created ReadableStream
objects.
We can then add support for custom ReadableStream
objects down the road.
Discussed with Luca and we want to enable passing FsFile
as well as ReadableStream
and WriteableStream
to the API. That said, it's a feature that is additive and we don't consider that it's a 2.0 release blocker.
Version: Deno 1.40.0
With
Deno.run()
, the subprocess could be connected to a terminal (or any file) with this code...With the deprecation of
Deno.run()
andrid
s (replaced withDeno.Command
), this doesn't seem possible anymore.NodeJS allows more flexibility, allowing the use of
Stream
objects and connection of extra streams beyond the basic three (STDIN, STDERR, and STDOUT), opaquely using their underlying file descriptors.Could
Deno.Command
have more flexibility to useFsFile
s in a similar manner (while keepingrid
s internal and opaque)?