MCPcopy
hub / github.com/cloudfoundry/cli / Setup

Method Setup

command/v7/login_command.go:62–70  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

60}
61
62func (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
72func (cmd *LoginCommand) Execute(args []string) error {
73 if cmd.Config.UAAGrantType() == string(constant.GrantTypeClientCredentials) {

Callers

nothing calls this directly

Calls 2

NewActorFunction · 0.92

Tested by

no test coverage detected