script icon indicating copy to clipboard operation
script copied to clipboard

Is it possble to ask for user input?

Open dangeloag opened this issue 3 years ago • 1 comments

I want to make interactive scripts with https://github.com/charmbracelet/gum, that is, using script.Exec(<gum command>) show the interactive menu of gum asking for input, then capture the output and continue using that in the rest of my script. I know I can do it with the "os/exec" functionality, I'm wondering if the library offers a way of easily doing it in a pipe.

Thanks!

dangeloag avatar Sep 09 '22 23:09 dangeloag

Thanks, @dangelowiz! There was some discussion about this in #51, but so far we have not come up with a compelling design for how this would work. Suggestions welcome!

bitfield avatar Sep 10 '22 07:09 bitfield