mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
17 lines
443 B
Go
17 lines
443 B
Go
package migrate
|
|
|
|
import "github.com/zeromicro/go-zero/tools/goctl/internal/cobrax"
|
|
|
|
var (
|
|
boolVarVerbose bool
|
|
stringVarVersion string
|
|
// Cmd describes a migrate command.
|
|
Cmd = cobrax.NewCommand("migrate", cobrax.WithRunE(migrate))
|
|
)
|
|
|
|
func init() {
|
|
migrateCmdFlags := Cmd.Flags()
|
|
migrateCmdFlags.BoolVarP(&boolVarVerbose, "verbose", "v")
|
|
migrateCmdFlags.StringVarWithDefaultValue(&stringVarVersion, "version", defaultMigrateVersion)
|
|
}
|