(subcmd string)
| 142 | } |
| 143 | |
| 144 | func actionMigrateWithPostMigrationEvent(subcmd string) func(context *cli.Context) { |
| 145 | return withinLockedMigration(func(context *cli.Context) { |
| 146 | if err := migration.Run(subcmd, context.Args()); err != nil { |
| 147 | log.Fatalf("Migrate run failed: %s", err) |
| 148 | } |
| 149 | if !context.Bool(FlagEmitPostMigrationEvent) { |
| 150 | return |
| 151 | } |
| 152 | emitPostMigrateEvent(context.String(FlagForcedSchemas), context.Bool(FlagSyncETCDEvent), context.Duration(FlagPostMigrationEventTimeout)) |
| 153 | }) |
| 154 | } |
| 155 | |
| 156 | func actionMigrateHelp() func(context *cli.Context) { |
| 157 | return func(context *cli.Context) { |
no test coverage detected