Introduction
In Go (Golang), "cobra" is a popular and widely used command-line interface (CLI) library. Cobra provides a simple and eleg...
For further actions, you may consider blocking this person and/or reporting abuse
Really love the Cobra framework, been using it to build CLIs for years. One of the greatest features they've added in the last while is support for a
completioncommand.By running
./myapp completion --helpyou can see a list of available command, i.e.And then running help for a specific one tells you how to load it into your shell of choice, e.g.
./myapp completion fish --helpwill giveEt voila. Tab completion for your custom CLI. Awesome feature to just get out the box given how powerful the framework already is.