1
0
hugo/content/blog/2017-01-24-pc.md

24 lines
454 B
Markdown
Raw Normal View History

2024-04-23 13:21:26 +00:00
+++
date = "2017-01-24"
tags = ["pc"]
title = "gcli"
slug = "pc"
+++
```bash
$ 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
```