This directory includes some examples using go-prompt. These examples are useful to know the usage of go-prompt and check behavior for development.
A simple echo example using prompt.Input
.
A simple http-prompt implementation using go-prompt in less than 200 lines of Go.
A example application which changes a prefix string dynamically. This feature is used like ktr0731/evans which is interactive gRPC client using go-prompt.
Run another CLI tool via os/exec
package.
More practical example is a source code of kube-prompt.
I recommend you to look this if you want to create tools like kube-prompt.