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

Method SetDependency

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

Source from the content-addressed store, hash-verified

96}
97
98func (cmd *MapRoute) 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
103 // get create-route for dependency
104 createRoute := commandregistry.Commands.FindCommand("create-route")
105 createRoute = createRoute.SetDependency(deps, false)
106 cmd.routeCreator = createRoute.(Creator)
107
108 return cmd
109}
110
111func (cmd *MapRoute) Execute(c flags.FlagContext) error {
112 rawHostNameFromFlag := c.String("n")

Callers

nothing calls this directly

Calls 3

GetRouteRepositoryMethod · 0.80
FindCommandMethod · 0.80
SetDependencyMethod · 0.65

Tested by

no test coverage detected