Execa streamed output support
See original GitHub issueHey!
It would be very nice if listr2 would also have enquirer support just as the first version did. Currently it’s possible to execute async commands and wait for them to complete, however streaming the output from them does not seem to be possible.
Example:
{
title: "List files",
task: (ctx) => {
return execa.command(" ls -lah . && sleep 10 && ls -lah .");
}
}
The command will execute successfully, however the output will not be streamed. I tried a bunch of different variations as well, but none were successful. The output is not being streamed to the console.
Help here would be much appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Running commands with execa in Node.js - LogRocket Blog
In this tutorial, we'll work with two of them: stdout : standard output is the stream that a program writes its output data...
Read more >execa - npm
Supports shebang binaries cross-platform. ... Get interleaved output from stdout and stderr similar to what is printed on the terminal.
Read more >ionic/node_modules/execa · api · MOREAU Elise / Projet ...
Promise interface. Strips EOF from the output so you don't have to stdout.trim() . Supports shebang binaries cross-platform. Improved Windows support.
Read more >Spawn and Manage Child Processes and Node.js Streams ...
We'll learn how to do this two ways: with execa and with a dedicated yarn-or-npm utility, because this is such a common usecase....
Read more >exec.Command streaming strerr and stdout : r/golang - Reddit
Right now im doing the following output, err := exec. ... exec.Command streaming strerr and stdout ... need help exporting to csv.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will have a look at this early tomorrow afternoon. I think it is time to expand the tests.
🎉 This issue has been resolved in version 2.1.0 🎉
The release is available on:
Your semantic-release bot 📦🚀