MCPcopy Create free account
hub / github.com/davecheney/pub / ServeCmd

Struct ServeCmd

serve.go:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 DebugPrintRoutes bool `help:"print routes to stdout on startup"`
33 LogHTTP bool `help:"log HTTP requests"`
34}
35
36func (s *ServeCmd) Run(ctx *Context) error {
37 db, err := gorm.Open(ctx.Dialector, &ctx.Config)
38 if err != nil {
39 return err
40 }
41
42 if err := configureDB(db); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected