(config command.Config, ui command.UI)
| 15 | } |
| 16 | |
| 17 | func (cmd *LogoutCommand) Setup(config command.Config, ui command.UI) error { |
| 18 | cmd.UI = ui |
| 19 | cmd.Config = config |
| 20 | sharedActor := sharedaction.NewActor(config) |
| 21 | cmd.SharedActor = sharedActor |
| 22 | |
| 23 | ccClient, uaaClient, routingClient, _ := shared.GetNewClientsAndConnectToCF(config, ui, "") |
| 24 | cmd.cloudControllerClient = ccClient |
| 25 | cmd.uaaClient = uaaClient |
| 26 | cmd.Actor = v7action.NewActor(ccClient, config, sharedActor, uaaClient, routingClient, clock.NewClock()) |
| 27 | return nil |
| 28 | } |
| 29 | |
| 30 | func (cmd LogoutCommand) Execute(args []string) error { |
| 31 | user, err := cmd.Actor.GetCurrentUser() |
nothing calls this directly
no test coverage detected