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

Function actionMigrateWithPostMigrationEvent

cli/migrate.go:144–154  ·  view source on GitHub ↗
(subcmd string)

Source from the content-addressed store, hash-verified

142}
143
144func 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
156func actionMigrateHelp() func(context *cli.Context) {
157 return func(context *cli.Context) {

Callers 2

cli_test.goFile · 0.85

Calls 6

withinLockedMigrationFunction · 0.85
emitPostMigrateEventFunction · 0.85
ArgsMethod · 0.80
FatalfMethod · 0.80
RunMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected