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

Method Requirements

cf/commands/plugin/install_plugin.go:64–72  ·  view source on GitHub ↗
(requirementsFactory requirements.Factory, fc flags.FlagContext)

Source from the content-addressed store, hash-verified

62}
63
64func (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
74func (cmd *PluginInstall) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
75 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