MustRegister registers the migratecmd plugin to the provided app instance and panic if it fails. Example usage: migratecmd.MustRegister(app, app.RootCmd, migratecmd.Config{})
(app core.App, rootCmd *cobra.Command, config Config)
| 52 | // |
| 53 | // migratecmd.MustRegister(app, app.RootCmd, migratecmd.Config{}) |
| 54 | func MustRegister(app core.App, rootCmd *cobra.Command, config Config) { |
| 55 | if err := Register(app, rootCmd, config); err != nil { |
| 56 | panic(err) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // Register registers the migratecmd plugin to the provided app instance. |
| 61 | func Register(app core.App, rootCmd *cobra.Command, config Config) error { |
searching dependent graphs…