fix: issues
This commit is contained in:
@@ -40,7 +40,7 @@ func commandGenModelE(cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
v := viper.New()
|
v := viper.New()
|
||||||
v.SetConfigType("yaml")
|
v.SetConfigType("yaml")
|
||||||
v.SetConfigFile("database/.transform.yaml")
|
v.SetConfigFile("database/transform.yaml")
|
||||||
|
|
||||||
if err := v.ReadInConfig(); err != nil {
|
if err := v.ReadInConfig(); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ func CommandNewProject(root *cobra.Command) {
|
|||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "project",
|
Use: "project",
|
||||||
Short: "new project",
|
Short: "new project",
|
||||||
Args: cobra.ExactArgs(1),
|
|
||||||
RunE: commandNewProjectE,
|
RunE: commandNewProjectE,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
ignores: [] # ignore tables
|
|
||||||
types:
|
|
||||||
users: # table name
|
|
||||||
oauth: backend/pkg/pg.UserOAuth
|
|
||||||
5
templates/project/database/transform.yaml.tpl
Executable file
5
templates/project/database/transform.yaml.tpl
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
# ignores: [] # ignore tables
|
||||||
|
# types:
|
||||||
|
# users: # table name
|
||||||
|
# oauth: {{.ModuleName}}/pkg/pg.UserOAuth
|
||||||
|
#
|
||||||
Reference in New Issue
Block a user