github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/command/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/command" 8 "code.cloudfoundry.org/cli/command/flag" 9 ) 10 11 type UnbindRouteServiceCommand struct { 12 RequiredArgs flag.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 used in combination with HOSTNAME and DOMAIN to specify the route to unbind"` 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 command.Config, ui command.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 }