question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Execa streamed output support

See original GitHub issue

Hey!

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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cenk1cenk2commented, Jun 3, 2020

I will have a look at this early tomorrow afternoon. I think it is time to expand the tests.

0reactions
cenk1cenk2commented, Jun 3, 2020

🎉 This issue has been resolved in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found