MCPcopy Create free account
hub / github.com/cloudfoundry/cli / SetDependency

Method SetDependency

cf/commands/application/app.go:76–87  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

74}
75
76func (cmd *ShowApp) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
77 cmd.ui = deps.UI
78 cmd.config = deps.Config
79 cmd.appSummaryRepo = deps.RepoLocator.GetAppSummaryRepository()
80 cmd.appInstancesRepo = deps.RepoLocator.GetAppInstancesRepository()
81 cmd.stackRepo = deps.RepoLocator.GetStackRepository()
82
83 cmd.pluginAppModel = deps.PluginModels.Application
84 cmd.pluginCall = pluginCall
85
86 return cmd
87}
88
89func (cmd *ShowApp) Execute(c flags.FlagContext) error {
90 app := cmd.appReq.GetApplication()

Callers

nothing calls this directly

Calls 3

GetStackRepositoryMethod · 0.80

Tested by

no test coverage detected