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

Function getMigrateWithPostMigrationEventSubcommand

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

Source from the content-addressed store, hash-verified

414}
415
416func 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
432func getMigrateCommand() cli.Command {
433 return cli.Command{

Callers 1

getMigrateCommandFunction · 0.85

Tested by

no test coverage detected