refactor: init logger

This commit is contained in:
lilong.129
2023-08-06 11:37:08 +08:00
parent 630cd70215
commit 2625f135fd
10 changed files with 68 additions and 83 deletions
-3
View File
@@ -14,9 +14,6 @@ var scaffoldCmd = &cobra.Command{
Aliases: []string{"scaffold"},
Short: "create a scaffold project",
Args: cobra.ExactValidArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
setLogLevel(logLevel)
},
RunE: func(cmd *cobra.Command, args []string) error {
if !ignorePlugin && !genPythonPlugin && !genGoPlugin {
return errors.New("please specify function plugin type")