Utility
cobra
· ☕ 3 min read
cobra package cobra is command line tool that can be used to build command line tools! installation Get cobra installed go get -u github.com/spf13/cobra/cobra usage cobra init creating a new CLI application is as easy as running cobra init cobra init --pkg-name github.com/gophersumit/mycli This should create new cli application: main root main.go 1 2 3 4 5 6 7 package main import "github.com/gophersumit/mycli/cmd" func main() { cmd.Execute() } root.