(ctx context.Context, name string)
| 30 | } |
| 31 | |
| 32 | func (action *OrgCreate) Run(ctx context.Context, name string) (*OrgItem, error) { |
| 33 | client := pb.NewOrganizationServiceClient(action.cfg.CPConnection) |
| 34 | resp, err := client.Create(ctx, &pb.OrganizationServiceCreateRequest{Name: name}) |
| 35 | if err != nil { |
| 36 | return nil, err |
| 37 | } |
| 38 | |
| 39 | return pbOrgItemToAction(resp.Result), nil |
| 40 | } |
nothing calls this directly
no test coverage detected