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

Method SetDependency

cf/commands/api.go:47–52  ·  view source on GitHub ↗
(deps commandregistry.Dependency, _ bool)

Source from the content-addressed store, hash-verified

45}
46
47func (cmd API) SetDependency(deps commandregistry.Dependency, _ bool) commandregistry.Command {
48 cmd.ui = deps.UI
49 cmd.config = deps.Config
50 cmd.endpointRepo = deps.RepoLocator.GetEndpointRepository()
51 return cmd
52}
53
54func (cmd API) Execute(c flags.FlagContext) error {
55 if c.Bool("unset") {

Callers

nothing calls this directly

Calls 1

GetEndpointRepositoryMethod · 0.80

Tested by

no test coverage detected