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

Method Requirements

cf/commands/plugin/uninstall_plugin.go:40–48  ·  view source on GitHub ↗
(requirementsFactory requirements.Factory, fc flags.FlagContext)

Source from the content-addressed store, hash-verified

38}
39
40func (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
50func (cmd *PluginUninstall) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
51 cmd.ui = deps.UI

Callers

nothing calls this directly

Calls 3

CommandUsageMethod · 0.80
ArgsMethod · 0.65
FailedMethod · 0.65

Tested by

no test coverage detected