MCPcopy Create free account
hub / github.com/cloudfoundry/cli / SetDependency

Method SetDependency

cf/commands/login.go:74–82  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

72}
73
74func (cmd *Login) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
75 cmd.ui = deps.UI
76 cmd.config = deps.Config
77 cmd.authenticator = deps.RepoLocator.GetAuthenticationRepository()
78 cmd.endpointRepo = deps.RepoLocator.GetEndpointRepository()
79 cmd.orgRepo = deps.RepoLocator.GetOrganizationRepository()
80 cmd.spaceRepo = deps.RepoLocator.GetSpaceRepository()
81 return cmd
82}
83
84func (cmd *Login) Execute(c flags.FlagContext) error {
85 cmd.config.ClearSession()

Callers

nothing calls this directly

Calls 4

GetEndpointRepositoryMethod · 0.80
GetSpaceRepositoryMethod · 0.80

Tested by

no test coverage detected