(requirementsFactory requirements.Factory, fc flags.FlagContext)
| 38 | } |
| 39 | |
| 40 | func (cmd *PluginUninstall) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) ([]requirements.Requirement, error) { |
| 41 | if len(fc.Args()) != 1 { |
| 42 | cmd.ui.Failed(T("Incorrect Usage. Requires an argument\n\n") + commandregistry.Commands.CommandUsage("uninstall-plugin")) |
| 43 | return nil, fmt.Errorf("Incorrect usage: %d arguments of %d required", len(fc.Args()), 1) |
| 44 | } |
| 45 | |
| 46 | reqs := []requirements.Requirement{} |
| 47 | return reqs, nil |
| 48 | } |
| 49 | |
| 50 | func (cmd *PluginUninstall) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command { |
| 51 | cmd.ui = deps.UI |
nothing calls this directly
no test coverage detected