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

Method Setup

command/v7/restart_command.go:34–48  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

32}
33
34func (cmd *RestartCommand) Setup(config command.Config, ui command.UI) error {
35 err := cmd.BaseCommand.Setup(config, ui)
36 if err != nil {
37 return err
38 }
39
40 logCacheClient, err := logcache.NewClient(config.LogCacheEndpoint(), config, ui, v7action.NewDefaultKubernetesConfigGetter())
41 if err != nil {
42 return err
43 }
44
45 cmd.Stager = shared.NewAppStager(cmd.Actor, cmd.UI, cmd.Config, logCacheClient)
46
47 return nil
48}
49
50func (cmd RestartCommand) Execute(args []string) error {
51 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