(subcmd, usage string)
| 414 | } |
| 415 | |
| 416 | func getMigrateWithPostMigrationEventSubcommand(subcmd, usage string) cli.Command { |
| 417 | return cli.Command{ |
| 418 | Name: subcmd, |
| 419 | Usage: usage, |
| 420 | Flags: []cli.Flag{ |
| 421 | cli.StringFlag{Name: flagConfigFile, Value: defaultConfigFile, Usage: "Server config File"}, |
| 422 | cli.BoolFlag{Name: FlagLockWithETCD, Usage: "Enable if ETCD should be used to synchronize migrations"}, |
| 423 | cli.BoolFlag{Name: FlagEmitPostMigrationEvent, Usage: "Enable if post-migration event should be emitted to modified schema extensions"}, |
| 424 | cli.StringFlag{Name: FlagForcedSchemas, Usage: "A list of comma separated schemas to receive the post-migration event, even if those schemas did not request for the event"}, |
| 425 | cli.DurationFlag{Name: FlagPostMigrationEventTimeout, Value: time.Second * 30, Usage: "Maximum duration of post-migration event"}, |
| 426 | cli.BoolFlag{Name: FlagSyncETCDEvent, Usage: "Enable if ETCD events should be synchronized after migration"}, |
| 427 | }, |
| 428 | Action: actionMigrateWithPostMigrationEvent(subcmd), |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | func getMigrateCommand() cli.Command { |
| 433 | return cli.Command{ |
no test coverage detected