shuttle icon indicating copy to clipboard operation
shuttle copied to clipboard

Feature request: run commands through shuttle interactively

Open zanderhavgaard opened this issue 2 years ago • 1 comments

Hello!

I'm really enjoying using shuttle, so much in fact that I've been trying to add some interactivity to some of my scripts. Though I have found that it is currently not possible to have interactive sessions through shuttle.

For example if I call a script that uses gum choose foo bar the command simply hangs forever.

Another example: Running an interactive docker container docker run --rm -it alpine returns the error the input device is not a TTY.

I think this could be a valuable addition to shuttle that would open up for using the tool in new and interesting ways.

Thank you for all of your work and for open sourcing shuttle :-)

zanderhavgaard avatar Feb 09 '23 17:02 zanderhavgaard

This is a great suggestion, I will see what is required to pass the pipes properly internally. It shouldn't be too bad. Right now I believe we just pass raw buffers and stream those out. We if use os.Stdout and os.Stdin instead it should just work (tm)

kjuulh avatar Apr 17 '23 09:04 kjuulh