1
0
hugo/content/blog/2017-01-24-pc.md
2024-04-23 22:21:26 +09:00

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