_example/

directory
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2018 License: MIT

README

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL