MCPcopy
hub / github.com/cloudfoundry/cli / Execute

Method Execute

cf/commands/user/org_users.go:70–82  ·  view source on GitHub ↗
(c flags.FlagContext)

Source from the content-addressed store, hash-verified

68}
69
70func (cmd *OrgUsers) Execute(c flags.FlagContext) error {
71 org := cmd.orgReq.GetOrganization()
72
73 cmd.ui.Say(T("Getting users in org {{.TargetOrg}} as {{.CurrentUser}}...",
74 map[string]interface{}{
75 "TargetOrg": terminal.EntityNameColor(org.Name),
76 "CurrentUser": terminal.EntityNameColor(cmd.config.Username()),
77 }))
78
79 printer := cmd.printer(c)
80 printer.PrintUsers(org.GUID, cmd.config.Username())
81 return nil
82}
83
84func (cmd *OrgUsers) printer(c flags.FlagContext) userprint.UserPrinter {
85 var roles []models.Role

Callers

nothing calls this directly

Calls 6

printerMethod · 0.95
EntityNameColorFunction · 0.92
GetOrganizationMethod · 0.65
SayMethod · 0.65
UsernameMethod · 0.65
PrintUsersMethod · 0.65

Tested by

no test coverage detected