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

Method Setup

command/v7/copy_source_command.go:81–95  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

79}
80
81func (cmd *CopySourceCommand) Setup(config command.Config, ui command.UI) error {
82 err := cmd.BaseCommand.Setup(config, ui)
83 if err != nil {
84 return err
85 }
86
87 logCacheClient, err := logcache.NewClient(config.LogCacheEndpoint(), config, ui, v7action.NewDefaultKubernetesConfigGetter())
88 if err != nil {
89 return err
90 }
91
92 cmd.Stager = shared.NewAppStager(cmd.Actor, cmd.UI, cmd.Config, logCacheClient)
93
94 return nil
95}
96
97func (cmd CopySourceCommand) Execute(args []string) error {
98 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