go-prompt/_example/README.md
2018-02-14 22:56:34 +09:00

449 B

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.