(ctx context.Context, params scalingo.ProjectAddParams)
| 10 | ) |
| 11 | |
| 12 | func 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 | } |
no test coverage detected