1
0
hugo/old/2017-01-24-pc.md
2024-12-21 23:10:54 +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