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

Method Setup

command/v7/restage_command.go:35–49  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

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