Log Deno.command process output
i need to execute a command wich will keep running until stopped and log the output.
i found this but it dosnt work
this says:
Argument of type 'ReadableStream<Uint8Array>' is not assignable to parameter of type 'Reader'. Property 'read' is missing in type 'ReadableStream<Uint8Array>' but required in type 'Reader'
and i know that process.stdout has a getReader
but that dosnt seem to work either3 Replies
You could use https://deno.land/std@0.195.0/streams/mod.ts?s=TextLineStream for directly using the
ReadableStream
.
Alternatively you could use https://deno.land/std@0.195.0/streams/mod.ts?s=readerFromStreamReader to create a Reader
compatible with readLines
.alr thx il look into that
hey @kaytitulaer3820, do you have an example of how you converted this code with new functions?
I tried this but it exits immediately