.. | ||
echo | ||
exec-command | ||
input | ||
live-prefix | ||
README.md |
Examples of go-prompt
This directory includes some examples using go-prompt.
echo
: just return your inputexec-command
: Run another CLI tool viaos/exec
package.- More practical example is source code of kube-prompt. I recommend you to look this if you want to create tools like kube-prompt.
input
: example ofprompt.Input
live-prefix
: Change your prefix string dynamically.