README.md 625 字节
Newer Older
P
Phodal HUANG 已提交
1
# Coca
P
Phodal HUANG 已提交
2

P
Phodal Huang 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
## 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 .
```

P
Phodal HUANG 已提交
24 25
## Dev

P
Phodal Huang 已提交
26
Install Go
P
Phodal HUANG 已提交
27 28 29 30 31

```bash
brew install go
```

P
Phodal Huang 已提交
32
Env
P
Phodal HUANG 已提交
33 34 35 36 37 38 39

```bash
export GOROOT=/usr/local/opt/go/libexec
export GOPATH=$HOME/.go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
```

P
Phodal Huang 已提交
40
clone
P
Phodal HUANG 已提交
41 42

```
P
Phodal Huang 已提交
43
go get https://github.com/phodal/coca
P
Phodal HUANG 已提交
44 45
```

P
Phodal Huang 已提交
46
Test Frameworks
P
Phodal HUANG 已提交
47 48 49 50

```
go get github.com/onsi/ginkgo
go get github.com/onsi/gomega
P
Phodal HUANG 已提交
51 52
```

P
Phodal HUANG 已提交
53
### Refs
P
Phodal HUANG 已提交
54

P
Phodal Huang 已提交
55
[https://github.com/MontFerret/ferret](https://github.com/MontFerret/ferret)