454 B
454 B
+++ date = "2017-01-24" tags = ["pc"] title = "gcli" slug = "pc" +++
$ go get -u github.com/tcnksm/gcli
$ go get -u github.com/tcnksm/cli-init
$ go get -u github.com/jteeuwen/go-bindata
$ cd $GOPATH/src/github.com/tcnksm
$ make
$ make install
$ cd $GOPATH/src/github.com/mitchellh/cli
# -F:framework, -c:option, $=name
$ gcli new -F mitchellh_cli -c add -c list -c delete todo
$ cd $GOPATH/src/github.com/$USER/todo
$ go build
$ ./todo