github.com/elopio/cli@v6.21.2-0.20160902224010-ea909d1fdb2f+incompatible/commands/v2/unbind_route_service_command.go (about)

     1  package v2
     2  
     3  import (
     4  	"os"
     5  
     6  	"code.cloudfoundry.org/cli/cf/cmd"
     7  	"code.cloudfoundry.org/cli/commands"
     8  	"code.cloudfoundry.org/cli/commands/flags"
     9  )
    10  
    11  type UnbindRouteServiceCommand struct {
    12  	RequiredArgs    flags.RouteServiceArgs `positional-args:"yes"`
    13  	Force           bool                   `short:"f" description:"Force unbinding without confirmation"`
    14  	Hostname        string                 `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to unbind"`
    15  	Path            string                 `long:"path" description:"Path for HTTP route"`
    16  	usage           interface{}            `usage:"CF_NAME unbind-route-service DOMAIN SERVICE_INSTANCE [--hostname HOSTNAME] [--path PATH] [-f]\n\nEXAMPLES:\n   CF_NAME unbind-route-service example.com myratelimiter --hostname myapp --path foo"`
    17  	relatedCommands interface{}            `related_commands:"delete-service, routes, services"`
    18  }
    19  
    20  func (_ UnbindRouteServiceCommand) Setup(config commands.Config, ui commands.UI) error {
    21  	return nil
    22  }
    23  
    24  func (_ UnbindRouteServiceCommand) Execute(args []string) error {
    25  	cmd.Main(os.Getenv("CF_TRACE"), os.Args)
    26  	return nil
    27  }