Migrating from Deno.run to Deno.command, how to readLines?
At the moment I have this:
const command = new Deno.command('...');
for await (const line of readLines(command.stderr!)) {
// ...
break;
}
// .. Continue using sun process
const command = new Deno.command('...');
for await (const line of readLines(command.stderr!)) {
// ...
break;
}
// .. Continue using sun process
How would I now do this if using Deno.Command? I'm currently spawning a long running subprocess that doesn't exit on it's own, so simply running the command, and using outputSync() probably isnt an option