github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+incompatible/command/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/command" 8 "code.cloudfoundry.org/cli/command/flag" 9 ) 10 11 type BindRouteServiceCommand struct { 12 RequiredArgs flag.RouteServiceArgs `positional-args:"yes"` 13 ParametersAsJSON flag.Path `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 used in combination with HOSTNAME and DOMAIN to specify the route to bind"` 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 BackwardsCompatibility bool `short:"f" hidden:"true" description:"This is for backwards compatibility"` 19 } 20 21 func (_ BindRouteServiceCommand) Setup(config command.Config, ui command.UI) error { 22 return nil 23 } 24 25 func (_ BindRouteServiceCommand) Execute(args []string) error { 26 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 27 return nil 28 }