| 11 | ) |
| 12 | |
| 13 | type 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 | |
| 24 | func (cmd BindServiceCommand) Execute(args []string) error { |
| 25 | if err := cmd.SharedActor.CheckTarget(true, true); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected