MustRegister registers the ghupdate plugin to the provided app instance and panic if it fails.
(app core.App, rootCmd *cobra.Command, config Config)
| 63 | // MustRegister registers the ghupdate plugin to the provided app instance |
| 64 | // and panic if it fails. |
| 65 | func MustRegister(app core.App, rootCmd *cobra.Command, config Config) { |
| 66 | if err := Register(app, rootCmd, config); err != nil { |
| 67 | panic(err) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // Register registers the ghupdate plugin to the provided app instance. |
| 72 | func Register(app core.App, rootCmd *cobra.Command, config Config) error { |