github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/command/v6/delete_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 DeleteRouteCommand struct { 10 RequiredArgs flag.Domain `positional-args:"yes"` 11 Force bool `short:"f" description:"Force deletion without confirmation"` 12 Hostname string `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"` 13 Path string `long:"path" description:"Path used to identify the HTTP route"` 14 Port int `long:"port" description:"Port used to identify the TCP route"` 15 usage interface{} `usage:"Delete an HTTP route:\n CF_NAME delete-route DOMAIN [--hostname HOSTNAME] [--path PATH] [-f]\n\n Delete a TCP route:\n CF_NAME delete-route DOMAIN --port PORT [-f]\n\nEXAMPLES:\n CF_NAME delete-route example.com # example.com\n CF_NAME delete-route example.com --hostname myhost # myhost.example.com\n CF_NAME delete-route example.com --hostname myhost --path foo # myhost.example.com/foo\n CF_NAME delete-route example.com --port 5000 # example.com:5000"` 16 relatedCommands interface{} `related_commands:"delete-orphaned-routes, routes, unmap-route"` 17 } 18 19 func (DeleteRouteCommand) Setup(config command.Config, ui command.UI) error { 20 return nil 21 } 22 23 func (DeleteRouteCommand) Execute(args []string) error { 24 return translatableerror.UnrefactoredCommandError{} 25 }