|
@@ -4,10 +4,11 @@ import (
|
|
|
"embed"
|
|
"embed"
|
|
|
"fmt"
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
+ "github.com/spf13/cobra"
|
|
|
|
|
+
|
|
|
"github.com/runningwater/gohub/pkg/console"
|
|
"github.com/runningwater/gohub/pkg/console"
|
|
|
"github.com/runningwater/gohub/pkg/file"
|
|
"github.com/runningwater/gohub/pkg/file"
|
|
|
"github.com/runningwater/gohub/pkg/str"
|
|
"github.com/runningwater/gohub/pkg/str"
|
|
|
- "github.com/spf13/cobra"
|
|
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// Model 参数解释
|
|
// Model 参数解释
|
|
@@ -54,7 +55,7 @@ type Model struct {
|
|
|
PackageName string
|
|
PackageName string
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// tplsFS 方便我们后面打包的 .stub 为后缀的文件
|
|
|
|
|
|
|
+// tplsFS 方便我们后面打包的 .tpl 为后缀的文件
|
|
|
//
|
|
//
|
|
|
//go:embed tpls
|
|
//go:embed tpls
|
|
|
var tplsFS embed.FS
|
|
var tplsFS embed.FS
|
|
@@ -74,6 +75,7 @@ func init() {
|
|
|
CmdMakeMigration,
|
|
CmdMakeMigration,
|
|
|
CmdMakeFactory,
|
|
CmdMakeFactory,
|
|
|
CmdMakeSeeder,
|
|
CmdMakeSeeder,
|
|
|
|
|
+ CmdMakePolicy,
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|