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

refactor: renamee file

上级 c07cf794
......@@ -3,6 +3,7 @@ package cmd
import (
"encoding/json"
"github.com/olekukonko/tablewriter"
"github.com/phodal/coca/cmd/cmd_util"
"github.com/phodal/coca/config"
"github.com/phodal/coca/core/adapter"
. "github.com/phodal/coca/core/adapter/api"
......@@ -65,7 +66,7 @@ var apiCmd = &cobra.Command{
_ = json.Unmarshal(apiContent, &restApis)
}
parsedDeps := GetDepsFromJson(depPath)
parsedDeps := cmd_util.GetDepsFromJson(depPath)
restFieldsApi := filterApi(apiPrefix, restApis)
......@@ -94,7 +95,7 @@ var apiCmd = &cobra.Command{
}
WriteToCocaFile("api.dot", dotContent)
ConvertToSvg("api")
cmd_util.ConvertToSvg("api")
}
},
}
......
......@@ -2,6 +2,7 @@ package cmd
import (
"fmt"
"github.com/phodal/coca/cmd/cmd_util"
"github.com/phodal/coca/config"
"github.com/phodal/coca/core/domain/arch"
"github.com/spf13/cobra"
......@@ -20,7 +21,7 @@ var archCmd = &cobra.Command{
Short: "generate arch",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
parsedDeps := GetDepsFromJson(archCmdConfig.DependencePath)
parsedDeps := cmd_util.GetDepsFromJson(archCmdConfig.DependencePath)
archApp := arch.NewArchApp()
dotContent := archApp.Analysis(parsedDeps)
......
package cmd
package cmd_util
import (
"encoding/json"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册