MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / MustRegister

Function MustRegister

plugins/migratecmd/migratecmd.go:54–58  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

52//
53// migratecmd.MustRegister(app, app.RootCmd, migratecmd.Config{})
54func 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.
61func Register(app core.App, rootCmd *cobra.Command, config Config) error {

Callers 5

mainFunction · 0.92

Calls 1

RegisterFunction · 0.70

Used in the wild real call sites across dependent graphs

searching dependent graphs…