MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Run

Method Run

app/cli/pkg/action/workflow_describe.go:32–42  ·  view source on GitHub ↗
(ctx context.Context, name, projectName string)

Source from the content-addressed store, hash-verified

30}
31
32func (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}

Callers

nothing calls this directly

Calls 2

ViewMethod · 0.95
pbWorkflowItemToActionFunction · 0.85

Tested by

no test coverage detected