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

docs: update docs

上级 3bbaee2e
......@@ -8,6 +8,24 @@ install
go get https://github.com/phodal/coca
```
help:
```
Usage:
coca [command]
Available Commands:
analysis analysis package
api scan api
call call graph api
concept concept api
help Help about any command
refactor auto refactor code
```
Analysis
```
......@@ -53,3 +71,10 @@ go get github.com/onsi/gomega
### Refs
[https://github.com/MontFerret/ferret](https://github.com/MontFerret/ferret)
License
---
[![Phodal's Idea](http://brand.phodal.com/shields/idea-small.svg)](http://ideas.phodal.com/)
@ 2019 A [Phodal Huang](https://www.phodal.com)'s [Idea](http://github.com/phodal/ideas). This code is distributed under the MIT license. See `LICENSE` in this directory.
......@@ -28,6 +28,6 @@ var apiCmd *cobra.Command = &cobra.Command{
func init() {
rootCmd.AddCommand(apiCmd)
rootCmd.PersistentFlags().StringP("path", "p", "", "path")
rootCmd.PersistentFlags().StringP("dependence", "d", "", "get dependence file")
apiCmd.PersistentFlags().StringP("path", "p", "", "path")
apiCmd.PersistentFlags().StringP("dependence", "d", "", "get dependence file")
}
......@@ -5,9 +5,6 @@ import (
)
var (
// Used for flags.
cfgFile string
rootCmd = &cobra.Command{
Use: "coca",
Short: "A generator for Cobra based Applications",
......@@ -19,9 +16,3 @@ func Execute() error {
return rootCmd.Execute()
}
func init() {
rootCmd.AddCommand(analysisCmd)
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.cobra.yaml)")
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册