github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/command/v6/unmap_route_command.go (about) 1 package v6 2 3 import ( 4 "code.cloudfoundry.org/cli/command" 5 "code.cloudfoundry.org/cli/command/flag" 6 "code.cloudfoundry.org/cli/command/translatableerror" 7 ) 8 9 type UnmapRouteCommand struct { 10 RequiredArgs flag.AppDomain `positional-args:"yes"` 11 Hostname string `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"` 12 Path string `long:"path" description:"Path used to identify the HTTP route"` 13 Port int `long:"port" description:"Port used to identify the TCP route"` 14 usage interface{} `usage:"Unmap an HTTP route:\n CF_NAME unmap-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH]\n\n Unmap a TCP route:\n CF_NAME unmap-route APP_NAME DOMAIN --port PORT\n\nEXAMPLES:\n CF_NAME unmap-route my-app example.com # example.com\n CF_NAME unmap-route my-app example.com --hostname myhost # myhost.example.com\n CF_NAME unmap-route my-app example.com --hostname myhost --path foo # myhost.example.com/foo\n CF_NAME unmap-route my-app example.com --port 5000 # example.com:5000"` 15 relatedCommands interface{} `related_commands:"delete-route, routes"` 16 } 17 18 func (UnmapRouteCommand) Setup(config command.Config, ui command.UI) error { 19 return nil 20 } 21 22 func (UnmapRouteCommand) Execute(args []string) error { 23 return translatableerror.UnrefactoredCommandError{} 24 }