MCPcopy Create free account
hub / github.com/cloudwan/gohan / getMigrateSubcommand

Function getMigrateSubcommand

cli/cli.go:404–414  ·  view source on GitHub ↗
(subcmd, usage string)

Source from the content-addressed store, hash-verified

402}
403
404func getMigrateSubcommand(subcmd, usage string) cli.Command {
405 return cli.Command{
406 Name: subcmd,
407 Usage: usage,
408 Flags: []cli.Flag{
409 cli.StringFlag{Name: flagConfigFile, Value: defaultConfigFile, Usage: "Server config File"},
410 cli.BoolFlag{Name: FlagLockWithETCD, Usage: "Enable if ETCD should be used to synchronize migrations"},
411 },
412 Action: actionMigrate(subcmd),
413 }
414}
415
416func getMigrateWithPostMigrationEventSubcommand(subcmd, usage string) cli.Command {
417 return cli.Command{

Callers 1

getMigrateCommandFunction · 0.85

Calls 1

actionMigrateFunction · 0.85

Tested by

no test coverage detected