Start starts the application, aka. registers the default system commands (serve, superuser, version) and executes pb.RootCmd.
()
| 164 | // Start starts the application, aka. registers the default system |
| 165 | // commands (serve, superuser, version) and executes pb.RootCmd. |
| 166 | func (pb *PocketBase) Start() error { |
| 167 | // register system commands |
| 168 | pb.RootCmd.AddCommand(cmd.NewSuperuserCommand(pb)) |
| 169 | pb.RootCmd.AddCommand(cmd.NewServeCommand(pb, !pb.hideStartBanner)) |
| 170 | |
| 171 | return pb.Execute() |
| 172 | } |
| 173 | |
| 174 | // Execute initializes the application (if not already) and executes |
| 175 | // the pb.RootCmd with graceful shutdown support. |
nothing calls this directly
no test coverage detected