turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Forward stdin

Open marvinroger opened this issue 2 years ago • 19 comments

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.

TURBO-588

marvinroger avatar May 13 '22 08:05 marvinroger

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.

MohamedLamineAllal avatar Sep 22 '22 14:09 MohamedLamineAllal

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

gsoltis avatar Sep 23 '22 20:09 gsoltis