You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/tools/goctl/migrate/cmd.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)
}