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

Method SetDependency

cf/commands/application/env.go:54–59  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

52}
53
54func (cmd *Env) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
55 cmd.ui = deps.UI
56 cmd.config = deps.Config
57 cmd.appRepo = deps.RepoLocator.GetApplicationRepository()
58 return cmd
59}
60
61func (cmd *Env) Execute(c flags.FlagContext) error {
62 app, err := cmd.appRepo.Read(c.Args()[0])

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected