-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execa streamed output support #37
Comments
I will have a look at this early tomorrow afternoon. I think it is time to expand the tests. |
You might redirect the stdout of execa using task.stdout. i am not sure if execa.command returns a promise or a stream. But i will anyway rewrite the stream to output conversion. |
Piping to This might, however, be an {
title: "List files",
task: (ctx, task) => {
const subprocess = execa(" ls -lah . && sleep 10 && ls -lah .");
subprocess.stdout.pipe(task.stdout);
return subprocess;
}
} |
# [2.1.0-beta.6](v2.1.0-beta.5...v2.1.0-beta.6) (2020-06-03) ### Bug Fixes * **deps:** remove trivial deps ([de8dec0](de8dec0)) * **deps:** remove unnecassary types ([b37f416](b37f416)) * **deps:** updated deps to latest ([c4ad38f](c4ad38f)) * **stream:** fixed streams added example ([614d89f](614d89f)), closes [#37](#37)
🎉 This issue has been resolved in version 2.1.0-beta.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [2.1.0](v2.0.4...v2.1.0) (2020-06-03) ### Bug Fixes * **deps:** remove trivial deps ([de8dec0](de8dec0)) * **deps:** remove unnecassary types ([b37f416](b37f416)) * **deps:** updated deps to latest ([c4ad38f](c4ad38f)) * **figures:** made microsoft icons to use the fancy ones, even though it may fail in some cases ([f0e5817](f0e5817)), closes [#31](#31) * **prompt:** enquirer to peer ([cae55e9](cae55e9)) * **prompt:** types ([110130a](110130a)) * **prompts:** fixed type for array prompts, added name as mandatory ([a08b1e4](a08b1e4)) * **stream:** fixed streams added example ([614d89f](614d89f)), closes [#37](#37) ### Features * **prompt:** make prompt module optional, be more compatible to underlying enqurier ([64cecc1](64cecc1)), closes [#34](#34) * **prompt:** use enquirer directly ([b34e9d0](b34e9d0)), closes [#34](#34) * **renderer:** added hook and stdout support ([bd73c68](bd73c68)), closes [#31](#31)
🎉 This issue has been resolved in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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:
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!
The text was updated successfully, but these errors were encountered: