19 lines
328 B
Go
19 lines
328 B
Go
package main
|
|
|
|
import (
|
|
. "git.gorlug.de/code/ersteller"
|
|
|
|
"entgo.io/ent/entc"
|
|
"entgo.io/ent/entc/gen"
|
|
)
|
|
|
|
func main() {
|
|
Debug("ersteller schema generation")
|
|
paginationPath := "starter/ent/schema/pagination_query.tmpl"
|
|
Must(entc.Generate(
|
|
"./schema/ent/schema",
|
|
&gen.Config{},
|
|
entc.TemplateFiles(paginationPath),
|
|
))
|
|
}
|