24 lines
402 B
Go
24 lines
402 B
Go
//go:build ignore
|
|
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"entgo.io/ent/entc"
|
|
"entgo.io/ent/entc/gen"
|
|
)
|
|
|
|
func main() {
|
|
opt := entc.TemplateFiles("./template/create_from.tmpl")
|
|
|
|
config := gen.Config{
|
|
Target: "./ent/",
|
|
Package: "omctf.ru/block-game-backend/codegen/ent",
|
|
}
|
|
if err := entc.Generate("../schema", &config, opt); err != nil {
|
|
log.Fatal("running ent codegen:", err)
|
|
}
|
|
}
|