github.com/elopio/cli@v6.21.2-0.20160902224010-ea909d1fdb2f+incompatible/commands/v2/bind_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 BindRouteServiceCommand struct { 12 RequiredArgs flags.RouteServiceArgs `positional-args:"yes"` 13 ParametersAsJSON string `short:"c" description:"Valid JSON object containing service-specific configuration parameters, provided inline or in a file. For a list of supported configuration parameters, see documentation for the particular service offering."` 14 Hostname string `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to bind"` 15 Path string `long:"path" description:"Path for the HTTP route"` 16 usage interface{} `usage:"CF_NAME bind-route-service DOMAIN SERVICE_INSTANCE [--hostname HOSTNAME] [--path PATH] [-c PARAMETERS_AS_JSON]\n\nEXAMPLES:\n CF_NAME bind-route-service example.com myratelimiter --hostname myapp --path foo\n CF_NAME bind-route-service example.com myratelimiter -c file.json\n CF_NAME bind-route-service example.com myratelimiter -c '{\"valid\":\"json\"}'\n\n In Windows PowerShell use double-quoted, escaped JSON: \"{\\\"valid\\\":\\\"json\\\"}\"\n In Windows Command Line use single-quoted, escaped JSON: '{\\\"valid\\\":\\\"json\\\"}'"` 17 relatedCommands interface{} `related_commands:"routes, services"` 18 } 19 20 func (_ BindRouteServiceCommand) Setup(config commands.Config, ui commands.UI) error { 21 return nil 22 } 23 24 func (_ BindRouteServiceCommand) Execute(args []string) error { 25 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 26 return nil 27 }