(deps commandregistry.Dependency, pluginCall bool)
| 72 | } |
| 73 | |
| 74 | func (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 | |
| 84 | func (cmd *Login) Execute(c flags.FlagContext) error { |
| 85 | cmd.config.ClearSession() |
nothing calls this directly
no test coverage detected