Skip to content
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

Feature request: run commands through shuttle interactively #149

Open
zanderhavgaard opened this issue Feb 9, 2023 · 1 comment
Open

Comments

@zanderhavgaard
Copy link
Contributor

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 :-)

@kjuulh
Copy link
Contributor

kjuulh commented Apr 17, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants