htmgo/cli/tasks/run/entschema.go

11 lines
275 B
Go

package run
import "github.com/maddalax/htmgo/cli/tasks/process"
func EntNewSchema(name string) {
process.RunOrExit("bash -c GOWORK=off go run -mod=mod entgo.io/ent/cmd/ent new " + name)
}
func EntGenerate() {
process.RunOrExit("bash -c GOWORK=off go generate ./ent")
}