(requirementsFactory requirements.Factory, fc flags.FlagContext)
| 62 | } |
| 63 | |
| 64 | func (cmd *PluginInstall) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) ([]requirements.Requirement, error) { |
| 65 | if len(fc.Args()) != 1 { |
| 66 | cmd.ui.Failed(T("Incorrect Usage. Requires an argument\n\n") + commandregistry.Commands.CommandUsage("install-plugin")) |
| 67 | return nil, fmt.Errorf("Incorrect usage: %d arguments of %d required", len(fc.Args()), 1) |
| 68 | } |
| 69 | |
| 70 | reqs := []requirements.Requirement{} |
| 71 | return reqs, nil |
| 72 | } |
| 73 | |
| 74 | func (cmd *PluginInstall) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command { |
| 75 | cmd.ui = deps.UI |
nothing calls this directly
no test coverage detected