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

Method SetDependency

cf/commands/user/unset_org_role.go:65–71  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

63}
64
65func (cmd *UnsetOrgRole) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
66 cmd.ui = deps.UI
67 cmd.config = deps.Config
68 cmd.userRepo = deps.RepoLocator.GetUserRepository()
69 cmd.flagRepo = deps.RepoLocator.GetFeatureFlagRepository()
70 return cmd
71}
72
73func (cmd *UnsetOrgRole) Execute(c flags.FlagContext) error {
74 user := cmd.userReq.GetUser()

Callers

nothing calls this directly

Calls 2

GetUserRepositoryMethod · 0.80

Tested by

no test coverage detected