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.
24 lines
641 B
Go
24 lines
641 B
Go
3 years ago
|
package migrate
|
||
|
|
||
|
import "github.com/spf13/cobra"
|
||
|
|
||
|
var (
|
||
|
boolVarVerbose bool
|
||
|
stringVarVersion string
|
||
|
// Cmd describes a migrate command.
|
||
|
Cmd = &cobra.Command{
|
||
|
Use: "migrate",
|
||
|
Short: "Migrate from tal-tech to zeromicro",
|
||
|
Long: "Migrate is a transition command to help users migrate their " +
|
||
|
"projects from tal-tech to zeromicro version",
|
||
|
RunE: migrate,
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
Cmd.Flags().BoolVarP(&boolVarVerbose, "verbose", "v",
|
||
|
false, "Verbose enables extra logging")
|
||
|
Cmd.Flags().StringVar(&stringVarVersion, "version", defaultMigrateVersion,
|
||
|
"The target release version of github.com/zeromicro/go-zero to migrate")
|
||
|
}
|