(subcmd, usage string)
| 402 | } |
| 403 | |
| 404 | func 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 | |
| 416 | func getMigrateWithPostMigrationEventSubcommand(subcmd, usage string) cli.Command { |
| 417 | return cli.Command{ |
no test coverage detected