chzyer / readline

Readline is a pure go(golang) implementation for GNU-Readline kind library
MIT License
2.08k stars 275 forks source link

can it support pipeline input? echo "test" | readline-cli #234

Open johnwmail opened 3 months ago

johnwmail commented 3 months ago

when I use: echo "some" | readline-cli
the program will not prompt to let me input data again.

Any idea to support pipeline stdin? thank you.

wader commented 3 months ago

Not sure if that is possible as stdin will not be a tty/terminal. Do you know of any other cli program that supports this?

wader commented 3 months ago

btw maybe https://github.com/ergochat/readline could be of interest