(config command.Config, ui command.UI)
| 60 | } |
| 61 | |
| 62 | func (cmd *LoginCommand) Setup(config command.Config, ui command.UI) error { |
| 63 | ccClient := shared.NewWrappedCloudControllerClient(config, ui) |
| 64 | cmd.Actor = v7action.NewActor(ccClient, config, nil, nil, nil, clock.NewClock()) |
| 65 | cmd.ActorReloader = ActualActorReloader{} |
| 66 | |
| 67 | cmd.UI = ui |
| 68 | cmd.Config = config |
| 69 | return nil |
| 70 | } |
| 71 | |
| 72 | func (cmd *LoginCommand) Execute(args []string) error { |
| 73 | if cmd.Config.UAAGrantType() == string(constant.GrantTypeClientCredentials) { |
nothing calls this directly
no test coverage detected