goCLI
A simple and lightweight cli framework for go applications. Get your cli setup in seconds.
Getting started
Add the dependency go get github.com/LucasCarioca/gocli
Your first cli
package main
import "github.com/LucasCarioca/gocli/cli"
func main() {
app := cli.NewApp(func(_ cli.AppInterface) error {
fmt.Println("Hello world")
})
app.Run()
}
Build and run
go build main.go -o mycli
mycli
# Hello World