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

Method Requirements

cf/commands/stacks.go:33–47  ·  view source on GitHub ↗
(requirementsFactory requirements.Factory, fc flags.FlagContext)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

NewUsageRequirementFunction · 0.92
CLICommandUsagePresenterFunction · 0.92
ArgsMethod · 0.65
NewLoginRequirementMethod · 0.65

Tested by

no test coverage detected