MCPcopy Create free account
hub / github.com/Scalingo/cli / Add

Function Add

projects/add.go:12–26  ·  view source on GitHub ↗
(ctx context.Context, params scalingo.ProjectAddParams)

Source from the content-addressed store, hash-verified

10)
11
12func Add(ctx context.Context, params scalingo.ProjectAddParams) error {
13 c, err := config.ScalingoClient(ctx)
14 if err != nil {
15 return errors.Wrap(ctx, err, "get Scalingo client")
16 }
17
18 project, err := c.ProjectAdd(ctx, params)
19 if err != nil {
20 return errors.Wrap(ctx, err, "add project")
21 }
22
23 io.Status(project.Name, "has been created")
24
25 return nil
26}

Callers 1

projects.goFile · 0.92

Calls 2

ScalingoClientFunction · 0.92
StatusFunction · 0.92

Tested by

no test coverage detected