(ctx context.Context, name, project string, opts *WorkflowUpdateOpts)
| 35 | } |
| 36 | |
| 37 | func (action *WorkflowUpdate) Run(ctx context.Context, name, project string, opts *WorkflowUpdateOpts) (*WorkflowItem, error) { |
| 38 | client := pb.NewWorkflowServiceClient(action.cfg.CPConnection) |
| 39 | resp, err := client.Update(ctx, &pb.WorkflowServiceUpdateRequest{ |
| 40 | Name: name, |
| 41 | ProjectName: project, |
| 42 | Description: opts.Description, |
| 43 | Team: opts.Team, |
| 44 | Public: opts.Public, |
| 45 | ContractName: opts.ContractName, |
| 46 | }) |
| 47 | |
| 48 | if err != nil { |
| 49 | return nil, err |
| 50 | } |
| 51 | |
| 52 | return pbWorkflowItemToAction(resp.Result), nil |
| 53 | } |
nothing calls this directly
no test coverage detected