(ctx context.Context, name, projectName string)
| 30 | } |
| 31 | |
| 32 | func (action *WorkflowDescribe) Run(ctx context.Context, name, projectName string) (*WorkflowItem, error) { |
| 33 | client := pb.NewWorkflowServiceClient(action.cfg.CPConnection) |
| 34 | |
| 35 | req := &pb.WorkflowServiceViewRequest{Name: name, ProjectName: projectName} |
| 36 | resp, err := client.View(ctx, req) |
| 37 | if err != nil { |
| 38 | return nil, err |
| 39 | } |
| 40 | |
| 41 | return pbWorkflowItemToAction(resp.Result), nil |
| 42 | } |
nothing calls this directly
no test coverage detected