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

feat: make to json

上级 e4d66f7a
......@@ -25,7 +25,7 @@ Available Commands:
ga git analysis
help Help about any command
refactor auto refactor code
scc scc [FILE or DIRECTORY]
cloc cloc [FILE or DIRECTORY]
```
......@@ -65,7 +65,7 @@ Examples Result:
### Code Line Count
```
coca scc
coca cloc
```
Results:
......@@ -94,6 +94,12 @@ Estimated People Required 6.743156
───────────────────────────────────────────────────────────────────────────────s
```
Results to json
```
coca cloc --by-file --format json
```
### Build Deps Tree
```
......
......@@ -7,8 +7,8 @@ import (
)
var clocCmd = &cobra.Command{
Use: "scc",
Short: "scc [FILE or DIRECTORY]",
Use: "cloc",
Short: "cloc [FILE or DIRECTORY]",
Long: fmt.Sprintf("Sloc, Cloc and Code. Count lines of code in a directory with complexity estimation.\nVersion %s\nBen Boyter <ben@boyter.org> + Contributors", processor.Version),
Version: processor.Version,
Run: func(cmd *cobra.Command, args []string) {
......
# id: MomaHFBWg
# startDate: 2019-12-16T23:22:44Z
# endDate: 2019-12-16T23:22:44Z
# priority:
# status:
# author:
# title: Code Complexity by files
# language: zh-CN
@math
功能:Code Complexity by files
场景:
假设:
:
并且:
那么:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册