forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bind_route_service_command.go
25 lines (21 loc) · 1.84 KB
/
bind_route_service_command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package v2
import (
"code.cloudfoundry.org/cli/command"
"code.cloudfoundry.org/cli/command/flag"
"code.cloudfoundry.org/cli/command/translatableerror"
)
type BindRouteServiceCommand struct {
RequiredArgs flag.RouteServiceArgs `positional-args:"yes"`
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."`
Hostname string `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to bind"`
Path string `long:"path" description:"Path used in combination with HOSTNAME and DOMAIN to specify the route to bind"`
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\\\"}'"`
relatedCommands interface{} `related_commands:"routes, services"`
BackwardsCompatibility bool `short:"f" hidden:"true" description:"This is for backwards compatibility"`
}
func (BindRouteServiceCommand) Setup(config command.Config, ui command.UI) error {
return nil
}
func (BindRouteServiceCommand) Execute(args []string) error {
return translatableerror.UnrefactoredCommandError{}
}