github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/command/v2/delete_route_command.go (about)

     1  package v2
     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  }