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

Method Setup

command/common/install_plugin_command.go:67–75  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

65}
66
67func (cmd *InstallPluginCommand) Setup(config command.Config, ui command.UI) error {
68 cmd.UI = ui
69 cmd.Config = config
70 cmd.Actor = pluginaction.NewActor(config, shared.NewClient(config, ui, cmd.SkipSSLValidation))
71
72 cmd.ProgressBar = shared.NewProgressBarProxyReader(cmd.UI.Writer())
73
74 return nil
75}
76
77func (cmd InstallPluginCommand) Execute([]string) (err error) {
78 log.WithField("PluginHome", cmd.Config.PluginHome()).Info("making plugin dir")

Callers

nothing calls this directly

Calls 4

NewActorFunction · 0.92
NewClientFunction · 0.92
WriterMethod · 0.65

Tested by

no test coverage detected