turbo
turbo copied to clipboard
Forward stdin
Describe the feature you'd like to request
Hi!
I have a pretty standard setup, where I have a dev
script running nodemon
. nodemon
allows to type a special rs
command to stdin, triggering a restart of the process, which is very useful.
It works fine when ran directly, but it does not work through turbo, as turbo does not forward stdin to the underlying process.
Describe the solution you'd like
Maybe a task definition in turbo.json
could have a forwardStdin
option, which would, when enabled, forward stdin!
I think forwardStdin: true
should be mutually exclusive with cache: true
, because stdin could impact the result of the task.
I went and made pnpm run publish
with a turbo publish pipline. And i was using 2FA. And providing ota code is necessary. And that doesn't work. No interactive processes support. Sure in my case the better workflow is to use changsets. But it was just an experiment out of curiosity. And this means that any kind of workflow that needs some kind of interactivity, wouldn't be possible. And anything like that wouldn't benefit from turbo cache mechanism.
forwardStdin
is an interesting idea. I think it would have scheduling implications as well, only one task at a time would be able to grab it