github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/command/v2/update_user_provided_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 UpdateUserProvidedServiceCommand struct { 12 RequiredArgs flag.ServiceInstance `positional-args:"yes"` 13 SyslogDrainURL string `short:"l" description:"URL to which logs for bound applications will be streamed"` 14 Credentials string `short:"p" description:"Credentials, provided inline or in a file, to be exposed in the VCAP_SERVICES environment variable for bound applications"` 15 RouteServiceURL string `short:"r" description:"URL to which requests for bound routes will be forwarded. Scheme for this URL must be https"` 16 usage interface{} `usage:"CF_NAME update-user-provided-service SERVICE_INSTANCE [-p CREDENTIALS] [-l SYSLOG_DRAIN_URL] [-r ROUTE_SERVICE_URL]\n\n Pass comma separated credential parameter names to enable interactive mode:\n CF_NAME update-user-provided-service SERVICE_INSTANCE -p \"comma, separated, parameter, names\"\n\n Pass credential parameters as JSON to create a service non-interactively:\n CF_NAME update-user-provided-service SERVICE_INSTANCE -p '{\"key1\":\"value1\",\"key2\":\"value2\"}'\n\n Specify a path to a file containing JSON:\n CF_NAME update-user-provided-service SERVICE_INSTANCE -p PATH_TO_FILE\n\nEXAMPLES:\n CF_NAME update-user-provided-service my-db-mine -p '{\"username\":\"admin\", \"password\":\"pa55woRD\"}'\n CF_NAME update-user-provided-service my-db-mine -p /path/to/credentials.json\n CF_NAME update-user-provided-service my-drain-service -l syslog://example.com\n CF_NAME update-user-provided-service my-route-service -r https://example.com"` 17 relatedCommands interface{} `related_commands:"rename-service, services, update-service"` 18 } 19 20 func (_ UpdateUserProvidedServiceCommand) Setup(config command.Config, ui command.UI) error { 21 return nil 22 } 23 24 func (_ UpdateUserProvidedServiceCommand) Execute(args []string) error { 25 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 26 return nil 27 }