MCPcopy
hub / github.com/cloudfoundry/cli / BindServiceCommand

Struct BindServiceCommand

command/v7/bind_service_command.go:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11)
12
13type BindServiceCommand struct {
14 BaseCommand
15
16 RequiredArgs flag.BindServiceArgs `positional-args:"yes"`
17 BindingName flag.BindingName `long:"binding-name" description:"Name to expose service instance to app process with (Default: service instance name)"`
18 ParametersAsJSON flag.JSONOrFileWithValidation `short:"c" description:"Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file. For a list of supported configuration parameters, see documentation for the particular service offering."`
19 ServiceBindingStrategy flag.ServiceBindingStrategy `long:"strategy" description:"Service binding strategy. Valid values are 'single' (default) and 'multiple'."`
20 Wait bool `short:"w" long:"wait" description:"Wait for the operation to complete"`
21 relatedCommands interface{} `related_commands:"services"`
22}
23
24func (cmd BindServiceCommand) Execute(args []string) error {
25 if err := cmd.SharedActor.CheckTarget(true, true); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected