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

Method Setup

command/v7/logout_command.go:17–28  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

15}
16
17func (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
30func (cmd LogoutCommand) Execute(args []string) error {
31 user, err := cmd.Actor.GetCurrentUser()

Callers

nothing calls this directly

Calls 3

NewActorFunction · 0.92
NewActorFunction · 0.92

Tested by

no test coverage detected