Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenerateModelCmd = &cli.Command{ Name: "model", Flags: []cli.Flag{ &cli.StringFlag{ Name: "dsn", Usage: "DSN for gorm.io/gen. Example: \"host=localhost user=postgres password=password dbname=clean-protobuf port=5432 sslmode=disable TimeZone=Etc/UTC\"", Required: true, Destination: &dsn, }, &cli.StringSliceFlag{ Name: "excluded-table", Aliases: []string{"e"}, Usage: "Tables to exclude", Destination: &excluded, }, &cli.StringFlag{ Name: "gorm-model-pkg", Required: true, Usage: "The GORM model package", Destination: &gormModelPkg, }, &cli.StringFlag{ Name: "out", Value: "./model", Usage: "The output path for the generated models.", Destination: &outputPath, }, &cli.StringFlag{ Name: "template-path", Required: true, Usage: "The template file", Destination: &templatePath, }, }, Action: func(cCtx *cli.Context) error { return run() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.