cli.go is simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.
You can view the API docs here: https://godoc.org/github.com/codegangsta/cli
Command line apps are usually so tiny that there is absolutely no reason why your code should not be self-documenting. Things like generating help text and parsing command flags/options should not hinder productivity when writing a command line app.
This is where cli.go comes into play. cli.go makes command line programming fun, organized, and expressive!
Make sure you have a working Go environment (go 1.1+ is required). See the install instructions.
To install cli.go
, simply run:
$ go get github.com/codegangsta/cli
Make sure your PATH
includes to the $GOPATH/bin
directory so your commands can be easily used:
export PATH=$PATH:$GOPATH/bin