Move pagination_query.tmpl and time_mixin.go to starter
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"git.gorlug.de/code/ersteller/starter/create"
|
||||
"log"
|
||||
"path"
|
||||
|
||||
"git.gorlug.de/code/ersteller/starter/create"
|
||||
|
||||
"entgo.io/ent/entc"
|
||||
"entgo.io/ent/entc/gen"
|
||||
)
|
||||
@@ -12,7 +13,7 @@ import (
|
||||
func main() {
|
||||
log.Println("starter generate schema")
|
||||
thisDir := create.GetPathToThisDir()
|
||||
paginationPath := path.Join(thisDir, "../../schema/ent/pagination_query.tmpl")
|
||||
paginationPath := path.Join(thisDir, "./ent/schema/pagination_query.tmpl")
|
||||
|
||||
must(entc.Generate(
|
||||
"./ent/schema",
|
||||
|
||||
Reference in New Issue
Block a user