(deps commandregistry.Dependency, pluginCall bool)
| 96 | } |
| 97 | |
| 98 | func (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 | |
| 111 | func (cmd *MapRoute) Execute(c flags.FlagContext) error { |
| 112 | rawHostNameFromFlag := c.String("n") |
nothing calls this directly
no test coverage detected