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

Function actionMigrate

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

Source from the content-addressed store, hash-verified

134}
135
136func actionMigrate(subcmd string) func(context *cli.Context) {
137 return withinLockedMigration(func(context *cli.Context) {
138 if err := migration.Run(subcmd, context.Args()); err != nil {
139 log.Fatalf("Migrate run failed: %s", err)
140 }
141 })
142}
143
144func actionMigrateWithPostMigrationEvent(subcmd string) func(context *cli.Context) {
145 return withinLockedMigration(func(context *cli.Context) {

Callers 1

getMigrateSubcommandFunction · 0.85

Calls 4

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

Tested by

no test coverage detected