(ctx context.Context, appName, projectID string)
| 9 | ) |
| 10 | |
| 11 | func ProjectSet(ctx context.Context, appName, projectID string) error { |
| 12 | c, err := config.ScalingoClient(ctx) |
| 13 | if err != nil { |
| 14 | return errors.Wrap(ctx, err, "get Scalingo client") |
| 15 | } |
| 16 | |
| 17 | _, err = c.AppsSetProject(ctx, appName, projectID) |
| 18 | if err != nil { |
| 19 | return errors.Wrap(ctx, err, "set project for app") |
| 20 | } |
| 21 | |
| 22 | io.Statusf("Project ID has been set to %s for the application %s\n", projectID, appName) |
| 23 | |
| 24 | return nil |
| 25 | } |
no test coverage detected