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

Method SetDependency

cf/commands/organization/create_org.go:62–75  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

60}
61
62func (cmd *CreateOrg) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
63 cmd.ui = deps.UI
64 cmd.config = deps.Config
65 cmd.orgRepo = deps.RepoLocator.GetOrganizationRepository()
66 cmd.quotaRepo = deps.RepoLocator.GetQuotaRepository()
67 cmd.flagRepo = deps.RepoLocator.GetFeatureFlagRepository()
68
69 // get command from registry for dependency
70 commandDep := commandregistry.Commands.FindCommand("set-org-role")
71 commandDep = commandDep.SetDependency(deps, false)
72 cmd.orgRoleSetter = commandDep.(user.OrgRoleSetter)
73
74 return cmd
75}
76
77func (cmd *CreateOrg) Execute(c flags.FlagContext) error {
78 name := c.Args()[0]

Callers

nothing calls this directly

Calls 5

GetQuotaRepositoryMethod · 0.80
FindCommandMethod · 0.80
SetDependencyMethod · 0.65

Tested by

no test coverage detected