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

Method Setup

command/v7/api_command.go:25–32  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

23}
24
25func (cmd *APICommand) Setup(config command.Config, ui command.UI) error {
26 cmd.UI = ui
27 cmd.Config = config
28
29 ccClient := shared.NewWrappedCloudControllerClient(config, ui)
30 cmd.Actor = v7action.NewActor(ccClient, config, nil, nil, nil, clock.NewClock())
31 return nil
32}
33
34func (cmd *APICommand) Execute(args []string) error {
35 if cmd.Unset {

Callers

nothing calls this directly

Calls 2

NewActorFunction · 0.92

Tested by

no test coverage detected