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

Method SetDependency

cf/commands/route/create_route.go:98–103  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

96}
97
98func (cmd *CreateRoute) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
99 cmd.ui = deps.UI
100 cmd.config = deps.Config
101 cmd.routeRepo = deps.RepoLocator.GetRouteRepository()
102 return cmd
103}
104
105func (cmd *CreateRoute) Execute(c flags.FlagContext) error {
106 hostName := c.String("n")

Callers

nothing calls this directly

Calls 1

GetRouteRepositoryMethod · 0.80

Tested by

no test coverage detected