go-prompt/_example/README.md

10 lines
449 B
Markdown
Raw Normal View History

# Examples of go-prompt
This directory includes some examples using go-prompt.
* `echo` : just return your input
* `exec-command` : Run another CLI tool via `os/exec` package.
* More practical example is [source code of kube-prompt](https://github.com/c-bata/kube-prompt). I recommend you to look this if you want to create tools like kube-prompt.
* `input` : example of `prompt.Input`
* `live-prefix` : Change your prefix string dynamically.