feat: create scaffold project

This commit is contained in:
debugtalk
2022-01-08 22:09:08 +08:00
parent 288346bfd8
commit 1c8df8ecfd
7 changed files with 172 additions and 65 deletions

View File

@@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra"
"github.com/httprunner/hrp/internal/builtin"
"github.com/httprunner/hrp/internal/scaffold"
)
var scaffoldCmd = &cobra.Command{
@@ -16,7 +16,7 @@ var scaffoldCmd = &cobra.Command{
setLogLevel(logLevel)
},
Run: func(cmd *cobra.Command, args []string) {
err := builtin.CreateScaffold(args[0])
err := scaffold.CreateScaffold(args[0])
if err != nil {
os.Exit(1)
}