Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 491 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 491 Bytes

Cobra-Prompt

Cobra-prompt makes every Cobra command and flag available for go-prompt.

Features

  • Traverse cobra command tree. Every command and flag will be available.
  • Persist flag values.
  • Add custom functions for dynamic suggestions.

Getting started

Get the module:

go get github.com/stromland/cobra-prompt

Explore the example

cd _example
go build -o cobra-prompt
./cobra-prompt