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

Method Setup

command/v7/start_command.go:26–40  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

24}
25
26func (cmd *StartCommand) Setup(config command.Config, ui command.UI) error {
27 err := cmd.BaseCommand.Setup(config, ui)
28 if err != nil {
29 return err
30 }
31
32 cmd.LogCacheClient, err = logcache.NewClient(config.LogCacheEndpoint(), config, ui, v7action.NewDefaultKubernetesConfigGetter())
33 if err != nil {
34 return err
35 }
36
37 cmd.Stager = shared.NewAppStager(cmd.Actor, cmd.UI, cmd.Config, cmd.LogCacheClient)
38
39 return nil
40}
41
42func (cmd StartCommand) Execute(args []string) error {
43 err := cmd.SharedActor.CheckTarget(true, true)

Callers

nothing calls this directly

Calls 5

NewClientFunction · 0.92
NewAppStagerFunction · 0.92
SetupMethod · 0.65
LogCacheEndpointMethod · 0.65

Tested by

no test coverage detected