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