diff --git a/README.md b/README.md index fe550b8ab4489c4abbc36974157f38e03fec198c..d6f51b635be6d28291baa0757196e21a27dbe0c1 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,35 @@ # Coca +## Usage + +install + +``` +go get https://github.com/phodal/coca +``` + +Analysis + +``` +coca analysis -p [PATH] +``` + +Refactor + +``` +coca refactor -R rename.coca -D deps.json -p src/main +coca refactor -m move.config -p . +``` + ## Dev -### 安装 Go +Install Go ```bash brew install go ``` -配置环境 +Env ```bash export GOROOT=/usr/local/opt/go/libexec @@ -16,15 +37,13 @@ export GOPATH=$HOME/.go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin ``` -#### 安装 Go 依赖管理工具:godep +clone ``` -brew install dep +go get https://github.com/phodal/coca ``` -TBD. - -### Test +Test Frameworks ``` go get github.com/onsi/ginkgo @@ -33,4 +52,4 @@ go get github.com/onsi/gomega ### Refs -[https://github.com/MontFerret/ferret](https://github.com/MontFerret/ferret) \ No newline at end of file +[https://github.com/MontFerret/ferret](https://github.com/MontFerret/ferret)