10 lines
449 B
Markdown
10 lines
449 B
Markdown
![]() |
# 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.
|