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

Method Run

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

CreateMethod · 0.95
pbOrgItemToActionFunction · 0.85

Tested by

no test coverage detected