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

Method Requirements

cf/commands/routergroups/router_groups.go:36–46  ·  view source on GitHub ↗
(requirementsFactory requirements.Factory, fc flags.FlagContext)

Source from the content-addressed store, hash-verified

34}
35
36func (cmd *RouterGroups) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) ([]requirements.Requirement, error) {
37 return []requirements.Requirement{
38 requirementsFactory.NewUsageRequirement(commandregistry.CLICommandUsagePresenter(cmd),
39 T("No argument required"),
40 func() bool {
41 return len(fc.Args()) != 0
42 },
43 ),
44 requirementsFactory.NewLoginRequirement(),
45 }, nil
46}
47
48func (cmd *RouterGroups) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
49 cmd.ui = deps.UI

Callers

nothing calls this directly

Calls 4

CLICommandUsagePresenterFunction · 0.92
NewUsageRequirementMethod · 0.65
ArgsMethod · 0.65
NewLoginRequirementMethod · 0.65

Tested by

no test coverage detected