Method
Setup
(config command.Config, ui command.UI)
Source from the content-addressed store, hash-verified
| 25 | } |
| 26 | |
| 27 | func (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 | |
| 34 | func (cmd AddPluginRepoCommand) Execute(args []string) error { |
| 35 | err := cmd.Actor.AddPluginRepository(cmd.RequiredArgs.PluginRepoName, cmd.RequiredArgs.PluginRepoURL) |
Callers
nothing calls this directly
Tested by
no test coverage detected