| 12 | ) |
| 13 | |
| 14 | type CreateRouteCommand struct { |
| 15 | BaseCommand |
| 16 | |
| 17 | RequiredArgs flag.Domain `positional-args:"yes"` |
| 18 | Hostname string `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"` |
| 19 | Path flag.V7RoutePath `long:"path" description:"Path for the HTTP route"` |
| 20 | Port int `long:"port" description:"Port for the TCP route (default: random port)"` |
| 21 | Options []string `long:"option" short:"o" description:"Set the value of a per-route option"` |
| 22 | relatedCommands interface{} `related_commands:"check-route, update-route, domains, map-route, routes, unmap-route"` |
| 23 | } |
| 24 | |
| 25 | func (cmd CreateRouteCommand) Usage() string { |
| 26 | return ` |
nothing calls this directly
no outgoing calls
no test coverage detected