未验证 提交 787d0ace 编写于 作者: P Phodal Huang

docs: add suggest api

上级 f18dad62
...@@ -13,7 +13,9 @@ Refactoring Modeling: ...@@ -13,7 +13,9 @@ Refactoring Modeling:
Todo: Todo:
- [x] Show all todos and history - [x] Show all todos and history
- [ ] Suggest API - [ ] Suggest API for Design Patterns
- [x] factory pattern
- [ ] strategy
## Usage ## Usage
...@@ -43,6 +45,10 @@ Available Commands: ...@@ -43,6 +45,10 @@ Available Commands:
help Help about any command help Help about any command
rcall reverse call rcall reverse call
refactor auto refactor code refactor auto refactor code
suggest simple holmes
todo scan todo
version print the version number of Coca
``` ```
...@@ -333,6 +339,22 @@ results: ...@@ -333,6 +339,22 @@ results:
+------------+--------------+--------------------------------+---------------------------------------------------+-------+ +------------+--------------+--------------------------------+---------------------------------------------------+-------+
``` ```
### Suggest
```
coca suggest
```
results:
```
+--------+---------+---------------------+
| CLASS | PATTERN | REASON |
+--------+---------+---------------------+
| Insect | factory | to many constructor |
| Bee | factory | to many constructor |
+--------+---------+---------------------+
```
## Dev ## Dev
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册