MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Execute

Method Execute

command/v7/org_command.go:20–31  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

18}
19
20func (cmd OrgCommand) Execute(args []string) error {
21 err := cmd.SharedActor.CheckTarget(false, false)
22 if err != nil {
23 return err
24 }
25
26 if cmd.GUID {
27 return cmd.displayOrgGUID()
28 }
29
30 return cmd.displayOrgSummary()
31}
32
33func (cmd OrgCommand) displayOrgGUID() error {
34 org, warnings, err := cmd.Actor.GetOrganizationByName(cmd.RequiredArgs.Organization)

Callers

nothing calls this directly

Calls 3

displayOrgGUIDMethod · 0.95
displayOrgSummaryMethod · 0.95
CheckTargetMethod · 0.65

Tested by

no test coverage detected