go-prompt/_example
2018-02-14 22:56:34 +09:00
..
echo Alter the argument of completer to Document 2017-08-13 16:43:10 +09:00
exec-command Update example 2017-08-15 01:48:07 +09:00
input Update example 2017-08-22 18:22:55 +09:00
live-prefix Run goimports 2018-02-13 23:42:52 +09:00
README.md Remove DEVELOPER_GUIDE and Update README 2018-02-14 22:56:34 +09:00

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. 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.