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

Method Setup

command/plugin/add_plugin_repo_command.go:27–32  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

25}
26
27func (cmd *AddPluginRepoCommand) Setup(config command.Config, ui command.UI) error {
28 cmd.UI = ui
29 cmd.Config = config
30 cmd.Actor = pluginaction.NewActor(config, shared.NewClient(config, ui, cmd.SkipSSLValidation))
31 return nil
32}
33
34func (cmd AddPluginRepoCommand) Execute(args []string) error {
35 err := cmd.Actor.AddPluginRepository(cmd.RequiredArgs.PluginRepoName, cmd.RequiredArgs.PluginRepoURL)

Callers

nothing calls this directly

Calls 2

NewActorFunction · 0.92
NewClientFunction · 0.92

Tested by

no test coverage detected