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

Method Run

createinstance.go:15–23  ·  view source on GitHub ↗
(ctx *Context)

Source from the content-addressed store, hash-verified

13}
14
15func (c *CreateInstanceCmd) Run(ctx *Context) error {
16 db, err := gorm.Open(ctx.Dialector, &ctx.Config)
17 if err != nil {
18 return err
19 }
20 _, err = models.NewInstances(db).Create(c.Domain, c.Title, c.Description, c.AdminEmail)
21 return err
22
23}

Callers

nothing calls this directly

Calls 2

NewInstancesFunction · 0.92
CreateMethod · 0.45

Tested by

no test coverage detected