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

Method SetDependency

cf/commands/application/restage.go:53–64  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

51}
52
53func (cmd *Restage) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
54 cmd.ui = deps.UI
55 cmd.config = deps.Config
56 cmd.appRepo = deps.RepoLocator.GetApplicationRepository()
57
58 // get command from registry for dependency
59 commandDep := commandregistry.Commands.FindCommand("start")
60 commandDep = commandDep.SetDependency(deps, false)
61 cmd.appStagingWatcher = commandDep.(StagingWatcher)
62
63 return cmd
64}
65
66func (cmd *Restage) Execute(c flags.FlagContext) error {
67 app, err := cmd.appRepo.Read(c.Args()[0])

Callers

nothing calls this directly

Calls 3

FindCommandMethod · 0.80
SetDependencyMethod · 0.65

Tested by

no test coverage detected