From b22290caa13c0d88d47c0bd5e264a15e2c51c4c2 Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Wed, 6 May 2015 15:25:50 -0700 Subject: [PATCH 01/20] user can reference a file containing JSON when creating a service instance [#88670540] --- cf/commands/service/create_service.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index 729c19e388f..2ac3d64969c 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -69,9 +69,8 @@ func (cmd CreateService) Run(c *cli.Context) { serviceInstanceName := c.Args()[2] params := c.String("c") - paramsMap := make(map[string]interface{}) paramsMap, err := cmd.parseArbitraryParams(params) - if err != nil && params != "" { + if err != nil { cmd.ui.Failed(T("Invalid JSON provided in -c argument")) } From 84d390b6e6f36d8b0a839dd8a68b20ceeaac3a12 Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Wed, 6 May 2015 16:15:27 -0700 Subject: [PATCH 02/20] Fix stale string --- cf/commands/service/update_service_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cf/commands/service/update_service_test.go b/cf/commands/service/update_service_test.go index 2bf9f7b04fe..caf98c94d7b 100644 --- a/cf/commands/service/update_service_test.go +++ b/cf/commands/service/update_service_test.go @@ -100,7 +100,7 @@ var _ = Describe("update-service command", func() { }) }) - Context("when service creation is asynchronous", func() { + Context("when service update is asynchronous", func() { Context("when the plan flag is passed", func() { BeforeEach(func() { serviceInstance := models.ServiceInstance{ @@ -226,7 +226,7 @@ var _ = Describe("update-service command", func() { }) }) - Context("when service creation is synchronous", func() { + Context("when service update is synchronous", func() { Context("when the plan flag is passed", func() { BeforeEach(func() { serviceInstance := models.ServiceInstance{ From 0b7c19c045eed2d85d0b1a6be3402405a93661d1 Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Wed, 6 May 2015 17:02:46 -0700 Subject: [PATCH 03/20] Move json/file parsing logic to json package [#89843656] --- cf/commands/service/create_service.go | 21 +------- json/json_parser.go | 15 ++++++ json/json_parser_test.go | 73 +++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 19 deletions(-) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index 2ac3d64969c..a6bedb90960 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -1,8 +1,6 @@ package service import ( - "encoding/json" - "github.com/cloudfoundry/cli/cf/actors/service_builder" "github.com/cloudfoundry/cli/cf/api" "github.com/cloudfoundry/cli/cf/command_metadata" @@ -13,7 +11,7 @@ import ( "github.com/cloudfoundry/cli/cf/models" "github.com/cloudfoundry/cli/cf/requirements" "github.com/cloudfoundry/cli/cf/terminal" - cli_json "github.com/cloudfoundry/cli/json" + "github.com/cloudfoundry/cli/json" "github.com/codegangsta/cli" ) @@ -69,7 +67,7 @@ func (cmd CreateService) Run(c *cli.Context) { serviceInstanceName := c.Args()[2] params := c.String("c") - paramsMap, err := cmd.parseArbitraryParams(params) + paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { cmd.ui.Failed(T("Invalid JSON provided in -c argument")) } @@ -124,21 +122,6 @@ func (cmd CreateService) CreateService(serviceName, planName, serviceInstanceNam return plan, apiErr } -func (cmd CreateService) parseArbitraryParams(paramsFileOrJson string) (map[string]interface{}, error) { - var paramsMap map[string]interface{} - var err error - - paramsMap, err = cli_json.ParseJsonHash(paramsFileOrJson) - if err != nil { - paramsMap = make(map[string]interface{}) - err = json.Unmarshal([]byte(paramsFileOrJson), ¶msMap) - if err != nil && paramsFileOrJson != "" { - return nil, err - } - } - return paramsMap, nil -} - func findPlanFromOfferings(offerings models.ServiceOfferings, name string) (plan models.ServicePlanFields, err error) { for _, offering := range offerings { for _, plan := range offering.Plans { diff --git a/json/json_parser.go b/json/json_parser.go index ecc4768cec7..3e8e4630502 100644 --- a/json/json_parser.go +++ b/json/json_parser.go @@ -46,6 +46,21 @@ func ParseJsonHash(path string) (map[string]interface{}, error) { return stringMap, nil } +func ParseJsonFromFileOrString(fileOrJson string) (map[string]interface{}, error) { + var jsonMap map[string]interface{} + var err error + + jsonMap, err = ParseJsonHash(fileOrJson) + if err != nil { + jsonMap = make(map[string]interface{}) + err = json.Unmarshal([]byte(fileOrJson), &jsonMap) + if err != nil && fileOrJson != "" { + return nil, err + } + } + return jsonMap, nil +} + func readJsonFile(path string) ([]byte, error) { file, err := os.Open(path) if err != nil { diff --git a/json/json_parser_test.go b/json/json_parser_test.go index 33d7c1dfc36..909b29b2cd3 100644 --- a/json/json_parser_test.go +++ b/json/json_parser_test.go @@ -93,4 +93,77 @@ var _ = Describe("JSON Parser", func() { }) }) }) + + Describe("ParseJsonFromFileOrString", func() { + Context("when the input is a file", func() { + var jsonFile *os.File + var fileContent string + + AfterEach(func() { + if jsonFile != nil { + jsonFile.Close() + os.Remove(jsonFile.Name()) + } + }) + + BeforeEach(func() { + fileContent = `{"foo": "bar"}` + }) + + JustBeforeEach(func() { + var err error + jsonFile, err = ioutil.TempFile("", "") + Expect(err).ToNot(HaveOccurred()) + + err = ioutil.WriteFile(jsonFile.Name(), []byte(fileContent), os.ModePerm) + Expect(err).NotTo(HaveOccurred()) + }) + + It("returns the parsed json from the file", func() { + result, err := json.ParseJsonFromFileOrString(jsonFile.Name()) + Expect(err).NotTo(HaveOccurred()) + + Expect(result).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + + Context("when the file contains invalid json", func() { + BeforeEach(func() { + fileContent = `badtimes` + }) + + It("returns an error", func() { + _, err := json.ParseJsonFromFileOrString(jsonFile.Name()) + Expect(err).To(HaveOccurred()) + }) + }) + }) + + Context("when the input is a json string", func() { + var jsonString string + + BeforeEach(func() { + jsonString = `{"foo": "bar"}` + }) + + It("returns the parsed json", func() { + result, err := json.ParseJsonFromFileOrString(jsonString) + Expect(err).NotTo(HaveOccurred()) + + Expect(result).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + }) + + Context("when the input is neither a file nor a json string", func() { + var invalidInput string + + BeforeEach(func() { + invalidInput = "boo" + }) + + It("returns an error", func() { + _, err := json.ParseJsonFromFileOrString(invalidInput) + Expect(err).To(HaveOccurred()) + }) + }) + }) }) From 2746de454d76b8f4ffe257ab7d24abb383b584e7 Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Wed, 6 May 2015 18:00:20 -0700 Subject: [PATCH 04/20] user can provide raw JSON when updating a service instance [#89843656] --- cf/api/fakes/fake_service_repo.go | 4 +- cf/api/services.go | 19 +++++-- cf/api/services_test.go | 31 +++++++++++- cf/commands/service/update_service.go | 13 +++-- cf/commands/service/update_service_test.go | 58 ++++++++++++++++++++++ cf/models/service_instance.go | 7 ++- 6 files changed, 120 insertions(+), 12 deletions(-) diff --git a/cf/api/fakes/fake_service_repo.go b/cf/api/fakes/fake_service_repo.go index 3d09896b4a5..6c3bf6d3854 100644 --- a/cf/api/fakes/fake_service_repo.go +++ b/cf/api/fakes/fake_service_repo.go @@ -48,6 +48,7 @@ type FakeServiceRepo struct { UpdateServiceInstanceArgs struct { InstanceGuid string PlanGuid string + Params map[string]interface{} } UpdateServiceInstanceReturnsErr bool @@ -149,13 +150,14 @@ func (repo *FakeServiceRepo) CreateServiceInstance(name, planGuid string, params return repo.CreateServiceInstanceReturns.Error } -func (repo *FakeServiceRepo) UpdateServiceInstance(instanceGuid, planGuid string) (apiErr error) { +func (repo *FakeServiceRepo) UpdateServiceInstance(instanceGuid, planGuid string, params map[string]interface{}) (apiErr error) { if repo.UpdateServiceInstanceReturnsErr { apiErr = errors.New("Error updating service instance") } else { repo.UpdateServiceInstanceArgs.InstanceGuid = instanceGuid repo.UpdateServiceInstanceArgs.PlanGuid = planGuid + repo.UpdateServiceInstanceArgs.Params = params } return diff --git a/cf/api/services.go b/cf/api/services.go index 8c5412585cb..0d028c06031 100644 --- a/cf/api/services.go +++ b/cf/api/services.go @@ -26,7 +26,7 @@ type ServiceRepository interface { GetServiceOfferingsForSpace(spaceGuid string) (offerings models.ServiceOfferings, apiErr error) FindInstanceByName(name string) (instance models.ServiceInstance, apiErr error) CreateServiceInstance(name, planGuid string, params map[string]interface{}) (apiErr error) - UpdateServiceInstance(instanceGuid, planGuid string) (apiErr error) + UpdateServiceInstance(instanceGuid, planGuid string, params map[string]interface{}) (apiErr error) RenameService(instance models.ServiceInstance, newName string) (apiErr error) DeleteService(instance models.ServiceInstance) (apiErr error) FindServicePlanByDescription(planDescription resources.ServicePlanDescription) (planGuid string, apiErr error) @@ -136,7 +136,7 @@ func (repo CloudControllerServiceRepository) FindInstanceByName(name string) (in func (repo CloudControllerServiceRepository) CreateServiceInstance(name, planGuid string, params map[string]interface{}) (err error) { path := "/v2/service_instances?accepts_incomplete=true" - request := models.ServiceInstanceRequest{ + request := models.ServiceInstanceCreateRequest{ Name: name, PlanGuid: planGuid, SpaceGuid: repo.config.SpaceFields().Guid, @@ -162,11 +162,20 @@ func (repo CloudControllerServiceRepository) CreateServiceInstance(name, planGui return } -func (repo CloudControllerServiceRepository) UpdateServiceInstance(instanceGuid, planGuid string) (err error) { +func (repo CloudControllerServiceRepository) UpdateServiceInstance(instanceGuid, planGuid string, params map[string]interface{}) (err error) { path := fmt.Sprintf("/v2/service_instances/%s?accepts_incomplete=true", instanceGuid) - data := fmt.Sprintf(`{"service_plan_guid":"%s"}`, planGuid) + request := models.ServiceInstanceUpdateRequest{ + PlanGuid: planGuid, + Params: params, + } + + jsonBytes, err := json.Marshal(request) + if err != nil { + fmt.Println(err.Error()) + return err + } - err = repo.gateway.UpdateResource(repo.config.ApiEndpoint(), path, strings.NewReader(data)) + err = repo.gateway.UpdateResource(repo.config.ApiEndpoint(), path, bytes.NewReader(jsonBytes)) return } diff --git a/cf/api/services_test.go b/cf/api/services_test.go index b998daa876f..1c89e7149a6 100644 --- a/cf/api/services_test.go +++ b/cf/api/services_test.go @@ -292,7 +292,7 @@ var _ = Describe("Services Repo", func() { Response: testnet.TestResponse{Status: http.StatusOK}, })) - err := repo.UpdateServiceInstance("instance-guid", "plan-guid") + err := repo.UpdateServiceInstance("instance-guid", "plan-guid", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(err).NotTo(HaveOccurred()) }) @@ -306,11 +306,38 @@ var _ = Describe("Services Repo", func() { Response: testnet.TestResponse{Status: http.StatusNotFound}, })) - err := repo.UpdateServiceInstance("instance-guid", "plan-guid") + err := repo.UpdateServiceInstance("instance-guid", "plan-guid", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(err).To(HaveOccurred()) }) }) + + Context("when the user passes arbitrary params", func() { + It("passes the parameters in the correct field for the request", func() { + setupTestServer(testapi.NewCloudControllerTestRequest(testnet.TestRequest{ + Method: "PUT", + Path: "/v2/service_instances/instance-guid?accepts_incomplete=true", + Matcher: testnet.RequestBodyMatcher(`{"service_plan_guid":"plan-guid", "parameters": {"foo": "bar"}}`), + Response: testnet.TestResponse{Status: http.StatusOK}, + })) + + paramsMap := map[string]interface{}{"foo": "bar"} + + err := repo.UpdateServiceInstance("instance-guid", "plan-guid", paramsMap) + Expect(testHandler).To(HaveAllRequestsCalled()) + Expect(err).NotTo(HaveOccurred()) + }) + + Context("and there is a failure during serialization", func() { + It("returns the serialization error", func() { + paramsMap := make(map[string]interface{}) + paramsMap["data"] = make(chan bool) + + err := repo.UpdateServiceInstance("instance-guid", "plan-guid", paramsMap) + Expect(err).To(MatchError("json: unsupported type: chan bool")) + }) + }) + }) }) Describe("finding service instances by name", func() { diff --git a/cf/commands/service/update_service.go b/cf/commands/service/update_service.go index b73ff707d8a..b0581cbda46 100644 --- a/cf/commands/service/update_service.go +++ b/cf/commands/service/update_service.go @@ -14,6 +14,7 @@ import ( "github.com/cloudfoundry/cli/cf/models" "github.com/cloudfoundry/cli/cf/requirements" "github.com/cloudfoundry/cli/cf/terminal" + "github.com/cloudfoundry/cli/json" "github.com/codegangsta/cli" ) @@ -40,6 +41,7 @@ func (cmd *UpdateService) Metadata() command_metadata.CommandMetadata { Usage: T("CF_NAME update-service SERVICE [-p NEW_PLAN]"), Flags: []cli.Flag{ flag_helpers.NewStringFlag("p", T("Change service plan for a service instance")), + flag_helpers.NewStringFlag("c", T("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.")), }, } } @@ -67,6 +69,11 @@ func (cmd *UpdateService) Run(c *cli.Context) { } planName := c.String("p") + params := c.String("c") + paramsMap, err := json.ParseJsonFromFileOrString(params) + if err != nil { + cmd.ui.Failed("Invalid JSON provided in -c argument") + } if planName != "" { cmd.ui.Say(T("Updating service instance {{.ServiceName}} as {{.UserName}}...", @@ -76,7 +83,7 @@ func (cmd *UpdateService) Run(c *cli.Context) { })) if cmd.config.IsMinApiVersion("2.16.0") { - err := cmd.updateServiceWithPlan(serviceInstance, planName) + err := cmd.updateServiceWithPlan(serviceInstance, planName, paramsMap) switch err.(type) { case nil: err = printSuccessMessageForServiceInstance(serviceInstanceName, cmd.serviceRepo, cmd.ui) @@ -99,7 +106,7 @@ func (cmd *UpdateService) Run(c *cli.Context) { } } -func (cmd *UpdateService) updateServiceWithPlan(serviceInstance models.ServiceInstance, planName string) (err error) { +func (cmd *UpdateService) updateServiceWithPlan(serviceInstance models.ServiceInstance, planName string, paramsMap map[string]interface{}) (err error) { plans, err := cmd.planBuilder.GetPlansForServiceForOrg(serviceInstance.ServiceOffering.Guid, cmd.config.OrganizationFields().Name) if err != nil { return @@ -107,7 +114,7 @@ func (cmd *UpdateService) updateServiceWithPlan(serviceInstance models.ServiceIn for _, plan := range plans { if plan.Name == planName { - err = cmd.serviceRepo.UpdateServiceInstance(serviceInstance.Guid, plan.Guid) + err = cmd.serviceRepo.UpdateServiceInstance(serviceInstance.Guid, plan.Guid, paramsMap) return } } diff --git a/cf/commands/service/update_service_test.go b/cf/commands/service/update_service_test.go index caf98c94d7b..b89f7015c25 100644 --- a/cf/commands/service/update_service_test.go +++ b/cf/commands/service/update_service_test.go @@ -100,6 +100,64 @@ var _ = Describe("update-service command", func() { }) }) + Context("when passing arbitrary params", func() { + Context("as a json string", func() { + BeforeEach(func() { + serviceInstance := models.ServiceInstance{ + ServiceInstanceFields: models.ServiceInstanceFields{ + Name: "my-service-instance", + Guid: "my-service-instance-guid", + LastOperation: models.LastOperationFields{ + Type: "update", + State: "in progress", + Description: "fake service instance description", + }, + }, + ServiceOffering: models.ServiceOfferingFields{ + Label: "murkydb", + Guid: "murkydb-guid", + }, + } + + servicePlans := []models.ServicePlanFields{{ + Name: "spark", + Guid: "murkydb-spark-guid", + }, { + Name: "flare", + Guid: "murkydb-flare-guid", + }, + } + serviceRepo.FindInstanceByNameServiceInstance = serviceInstance + planBuilder.GetPlansForServiceForOrgReturns(servicePlans, nil) + }) + + It("successfully updates a service", func() { + callUpdateService([]string{"-p", "flare", "-c", `{"foo": "bar"}`, "my-service-instance"}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"Updating service", "my-service", "as", "my-user", "..."}, + []string{"OK"}, + []string{"Update in progress. Use 'cf services' or 'cf service my-service-instance' to check operation status."}, + )) + Expect(serviceRepo.FindInstanceByNameName).To(Equal("my-service-instance")) + Expect(serviceRepo.UpdateServiceInstanceArgs.InstanceGuid).To(Equal("my-service-instance-guid")) + Expect(serviceRepo.UpdateServiceInstanceArgs.PlanGuid).To(Equal("murkydb-flare-guid")) + Expect(serviceRepo.UpdateServiceInstanceArgs.Params).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + + Context("that are not valid json", func() { + It("returns an error to the UI", func() { + callUpdateService([]string{"-p", "flare", "-c", `bad-json`, "my-service-instance"}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"FAILED"}, + []string{"Invalid JSON provided in -c argument"}, + )) + }) + }) + }) + }) + Context("when service update is asynchronous", func() { Context("when the plan flag is passed", func() { BeforeEach(func() { diff --git a/cf/models/service_instance.go b/cf/models/service_instance.go index 384e2de0ed1..a8df2153e50 100644 --- a/cf/models/service_instance.go +++ b/cf/models/service_instance.go @@ -6,13 +6,18 @@ type LastOperationFields struct { Description string } -type ServiceInstanceRequest struct { +type ServiceInstanceCreateRequest struct { Name string `json:"name"` SpaceGuid string `json:"space_guid"` PlanGuid string `json:"service_plan_guid"` Params map[string]interface{} `json:"parameters,omitempty"` } +type ServiceInstanceUpdateRequest struct { + PlanGuid string `json:"service_plan_guid"` + Params map[string]interface{} `json:"parameters,omitempty"` +} + type ServiceInstanceFields struct { Guid string Name string From f5850529b77011e4b3b3c1b02f2209178942d00a Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Thu, 7 May 2015 09:42:53 -0700 Subject: [PATCH 05/20] Backfill tests for update-service when sending arbitrary params when they are provided in a file [#88670566] --- cf/commands/service/create_service_test.go | 2 +- cf/commands/service/update_service_test.go | 110 ++++++++++++++++----- 2 files changed, 84 insertions(+), 28 deletions(-) diff --git a/cf/commands/service/create_service_test.go b/cf/commands/service/create_service_test.go index e62218e2754..fa0a80db343 100644 --- a/cf/commands/service/create_service_test.go +++ b/cf/commands/service/create_service_test.go @@ -146,7 +146,7 @@ var _ = Describe("create-service command", func() { Expect(err).NotTo(HaveOccurred()) }) - It("successfully creates a service and passes the params as a json string", func() { + It("successfully creates a service and passes the params as a json", func() { callCreateService([]string{"cleardb", "spark", "my-cleardb-service", "-c", jsonFile.Name()}) Expect(ui.Outputs).To(ContainSubstrings( diff --git a/cf/commands/service/update_service_test.go b/cf/commands/service/update_service_test.go index b89f7015c25..1eef326d5ce 100644 --- a/cf/commands/service/update_service_test.go +++ b/cf/commands/service/update_service_test.go @@ -2,6 +2,8 @@ package service_test import ( "errors" + "io/ioutil" + "os" testplanbuilder "github.com/cloudfoundry/cli/cf/actors/plan_builder/fakes" testapi "github.com/cloudfoundry/cli/cf/api/fakes" @@ -101,36 +103,36 @@ var _ = Describe("update-service command", func() { }) Context("when passing arbitrary params", func() { - Context("as a json string", func() { - BeforeEach(func() { - serviceInstance := models.ServiceInstance{ - ServiceInstanceFields: models.ServiceInstanceFields{ - Name: "my-service-instance", - Guid: "my-service-instance-guid", - LastOperation: models.LastOperationFields{ - Type: "update", - State: "in progress", - Description: "fake service instance description", - }, - }, - ServiceOffering: models.ServiceOfferingFields{ - Label: "murkydb", - Guid: "murkydb-guid", + BeforeEach(func() { + serviceInstance := models.ServiceInstance{ + ServiceInstanceFields: models.ServiceInstanceFields{ + Name: "my-service-instance", + Guid: "my-service-instance-guid", + LastOperation: models.LastOperationFields{ + Type: "update", + State: "in progress", + Description: "fake service instance description", }, - } - - servicePlans := []models.ServicePlanFields{{ - Name: "spark", - Guid: "murkydb-spark-guid", - }, { - Name: "flare", - Guid: "murkydb-flare-guid", }, - } - serviceRepo.FindInstanceByNameServiceInstance = serviceInstance - planBuilder.GetPlansForServiceForOrgReturns(servicePlans, nil) - }) + ServiceOffering: models.ServiceOfferingFields{ + Label: "murkydb", + Guid: "murkydb-guid", + }, + } + + servicePlans := []models.ServicePlanFields{{ + Name: "spark", + Guid: "murkydb-spark-guid", + }, { + Name: "flare", + Guid: "murkydb-flare-guid", + }, + } + serviceRepo.FindInstanceByNameServiceInstance = serviceInstance + planBuilder.GetPlansForServiceForOrgReturns(servicePlans, nil) + }) + Context("as a json string", func() { It("successfully updates a service", func() { callUpdateService([]string{"-p", "flare", "-c", `{"foo": "bar"}`, "my-service-instance"}) @@ -156,6 +158,60 @@ var _ = Describe("update-service command", func() { }) }) }) + + Context("as a file that contains json", func() { + var jsonFile *os.File + var params string + + BeforeEach(func() { + params = "{\"foo\": \"bar\"}" + }) + + AfterEach(func() { + if jsonFile != nil { + jsonFile.Close() + os.Remove(jsonFile.Name()) + } + }) + + JustBeforeEach(func() { + var err error + jsonFile, err = ioutil.TempFile("", "") + Expect(err).ToNot(HaveOccurred()) + + err = ioutil.WriteFile(jsonFile.Name(), []byte(params), os.ModePerm) + Expect(err).NotTo(HaveOccurred()) + }) + + It("successfully updates a service and passes the params as a json", func() { + callUpdateService([]string{"-p", "flare", "-c", jsonFile.Name(), "my-service-instance"}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"Updating service", "my-service", "as", "my-user", "..."}, + []string{"OK"}, + []string{"Update in progress. Use 'cf services' or 'cf service my-service-instance' to check operation status."}, + )) + Expect(serviceRepo.FindInstanceByNameName).To(Equal("my-service-instance")) + Expect(serviceRepo.UpdateServiceInstanceArgs.InstanceGuid).To(Equal("my-service-instance-guid")) + Expect(serviceRepo.UpdateServiceInstanceArgs.PlanGuid).To(Equal("murkydb-flare-guid")) + Expect(serviceRepo.UpdateServiceInstanceArgs.Params).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + + Context("that are not valid json", func() { + BeforeEach(func() { + params = "bad-json" + }) + + It("returns an error to the UI", func() { + callUpdateService([]string{"-p", "flare", "-c", jsonFile.Name(), "my-service-instance"}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"FAILED"}, + []string{"Invalid JSON provided in -c argument"}, + )) + }) + }) + }) }) Context("when service update is asynchronous", func() { From a8907d963046499764e42920d7cbd595b590daf8 Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Thu, 7 May 2015 17:45:54 -0700 Subject: [PATCH 06/20] Add translation for error during update-service with arbitrary params --- cf/commands/service/update_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf/commands/service/update_service.go b/cf/commands/service/update_service.go index b0581cbda46..63782679267 100644 --- a/cf/commands/service/update_service.go +++ b/cf/commands/service/update_service.go @@ -72,7 +72,7 @@ func (cmd *UpdateService) Run(c *cli.Context) { params := c.String("c") paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { - cmd.ui.Failed("Invalid JSON provided in -c argument") + cmd.ui.Failed(T("Invalid JSON provided in -c argument")) } if planName != "" { From f0fd6d62069069247d4f9b7ba3a5d9981536e28d Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Thu, 7 May 2015 09:54:13 -0700 Subject: [PATCH 07/20] Do not send async:true in request body for bind-service Two problems: 1. async flag is a query parameter, not a post body parameter 2. POST /v2/service_bindings does not respect the async flag anyway [#92396108] --- cf/api/service_bindings.go | 2 +- cf/api/service_bindings_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cf/api/service_bindings.go b/cf/api/service_bindings.go index 86f81c262e3..4108085669e 100644 --- a/cf/api/service_bindings.go +++ b/cf/api/service_bindings.go @@ -28,7 +28,7 @@ func NewCloudControllerServiceBindingRepository(config core_config.Reader, gatew func (repo CloudControllerServiceBindingRepository) Create(instanceGuid, appGuid string) (apiErr error) { path := "/v2/service_bindings" body := fmt.Sprintf( - `{"app_guid":"%s","service_instance_guid":"%s","async":true}`, + `{"app_guid":"%s","service_instance_guid":"%s"}`, appGuid, instanceGuid, ) return repo.gateway.CreateResource(repo.config.ApiEndpoint(), path, strings.NewReader(body)) diff --git a/cf/api/service_bindings_test.go b/cf/api/service_bindings_test.go index 39c94bb69e6..24916c1122b 100644 --- a/cf/api/service_bindings_test.go +++ b/cf/api/service_bindings_test.go @@ -50,7 +50,7 @@ var _ = Describe("ServiceBindingsRepository", func() { setupTestServer(testapi.NewCloudControllerTestRequest(testnet.TestRequest{ Method: "POST", Path: "/v2/service_bindings", - Matcher: testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid","async":true}`), + Matcher: testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid"}`), Response: testnet.TestResponse{Status: http.StatusCreated}, })) }) @@ -68,7 +68,7 @@ var _ = Describe("ServiceBindingsRepository", func() { setupTestServer(testapi.NewCloudControllerTestRequest(testnet.TestRequest{ Method: "POST", Path: "/v2/service_bindings", - Matcher: testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid","async":true}`), + Matcher: testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid"}`), Response: testnet.TestResponse{ Status: http.StatusBadRequest, Body: `{"code":90003,"description":"The app space binding to service is taken: 7b959018-110a-4913-ac0a-d663e613cdea 346bf237-7eef-41a7-b892-68fb08068f09"}`, From 020f23ce602b0faa6af0a1f452b10075c312f3dc Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Thu, 7 May 2015 09:56:57 -0700 Subject: [PATCH 08/20] Re-organize test to correct context --- cf/api/services_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cf/api/services_test.go b/cf/api/services_test.go index 1c89e7149a6..ba3986c071d 100644 --- a/cf/api/services_test.go +++ b/cf/api/services_test.go @@ -224,15 +224,15 @@ var _ = Describe("Services Repo", func() { Expect(testHandler).To(HaveAllRequestsCalled()) Expect(err).NotTo(HaveOccurred()) }) - }) - Context("and there is a failure during serialization", func() { - It("returns the serialization error", func() { - paramsMap := make(map[string]interface{}) - paramsMap["data"] = make(chan bool) + Context("and there is a failure during serialization", func() { + It("returns the serialization error", func() { + paramsMap := make(map[string]interface{}) + paramsMap["data"] = make(chan bool) - err := repo.CreateServiceInstance("instance-name", "plan-guid", paramsMap) - Expect(err).To(MatchError("json: unsupported type: chan bool")) + err := repo.CreateServiceInstance("instance-name", "plan-guid", paramsMap) + Expect(err).To(MatchError("json: unsupported type: chan bool")) + }) }) }) From e17f863d6925fa638312443509917ab87c3df1c3 Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Thu, 7 May 2015 10:17:56 -0700 Subject: [PATCH 09/20] Remove unnecessary Printlns --- cf/api/services.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cf/api/services.go b/cf/api/services.go index 0d028c06031..593261d8164 100644 --- a/cf/api/services.go +++ b/cf/api/services.go @@ -145,7 +145,6 @@ func (repo CloudControllerServiceRepository) CreateServiceInstance(name, planGui jsonBytes, err := json.Marshal(request) if err != nil { - fmt.Println(err.Error()) return err } @@ -171,7 +170,6 @@ func (repo CloudControllerServiceRepository) UpdateServiceInstance(instanceGuid, jsonBytes, err := json.Marshal(request) if err != nil { - fmt.Println(err.Error()) return err } From e36c9b7033935a58a747b50402aa8df51dbf1eca Mon Sep 17 00:00:00 2001 From: Alex Ley and David Sabeti Date: Thu, 7 May 2015 14:17:19 -0700 Subject: [PATCH 10/20] User can pass arbitrary params during bind-service includes code for both json file and raw json [#89843654] [#88670578] --- cf/api/fakes/fake_service_binding_repo.go | 5 +- cf/api/service_bindings.go | 25 +++-- cf/api/service_bindings_test.go | 37 +++++++- cf/commands/application/push.go | 2 +- cf/commands/service/bind_service.go | 19 +++- cf/commands/service/bind_service_test.go | 106 ++++++++++++++++++++++ cf/models/service_binding.go | 6 ++ testhelpers/commands/fake_app_binder.go | 4 +- 8 files changed, 184 insertions(+), 20 deletions(-) diff --git a/cf/api/fakes/fake_service_binding_repo.go b/cf/api/fakes/fake_service_binding_repo.go index 02cfedb12fe..b37c9b81c08 100644 --- a/cf/api/fakes/fake_service_binding_repo.go +++ b/cf/api/fakes/fake_service_binding_repo.go @@ -9,6 +9,7 @@ type FakeServiceBindingRepo struct { CreateServiceInstanceGuid string CreateApplicationGuid string CreateErrorCode string + CreateParams map[string]interface{} DeleteServiceInstance models.ServiceInstance DeleteApplicationGuid string @@ -16,9 +17,11 @@ type FakeServiceBindingRepo struct { CreateNonHttpErrCode string } -func (repo *FakeServiceBindingRepo) Create(instanceGuid, appGuid string) (apiErr error) { +func (repo *FakeServiceBindingRepo) Create(instanceGuid, appGuid string, paramsMap map[string]interface{}) (apiErr error) { repo.CreateServiceInstanceGuid = instanceGuid repo.CreateApplicationGuid = appGuid + repo.CreateParams = paramsMap + if repo.CreateNonHttpErrCode != "" { apiErr = errors.New(repo.CreateNonHttpErrCode) return diff --git a/cf/api/service_bindings.go b/cf/api/service_bindings.go index 4108085669e..145342dde76 100644 --- a/cf/api/service_bindings.go +++ b/cf/api/service_bindings.go @@ -1,8 +1,8 @@ package api import ( - "fmt" - "strings" + "bytes" + "encoding/json" "github.com/cloudfoundry/cli/cf/configuration/core_config" "github.com/cloudfoundry/cli/cf/models" @@ -10,7 +10,7 @@ import ( ) type ServiceBindingRepository interface { - Create(instanceGuid, appGuid string) (apiErr error) + Create(instanceGuid, appGuid string, paramsMap map[string]interface{}) (apiErr error) Delete(instance models.ServiceInstance, appGuid string) (found bool, apiErr error) } @@ -25,13 +25,20 @@ func NewCloudControllerServiceBindingRepository(config core_config.Reader, gatew return } -func (repo CloudControllerServiceBindingRepository) Create(instanceGuid, appGuid string) (apiErr error) { +func (repo CloudControllerServiceBindingRepository) Create(instanceGuid, appGuid string, paramsMap map[string]interface{}) (apiErr error) { path := "/v2/service_bindings" - body := fmt.Sprintf( - `{"app_guid":"%s","service_instance_guid":"%s"}`, - appGuid, instanceGuid, - ) - return repo.gateway.CreateResource(repo.config.ApiEndpoint(), path, strings.NewReader(body)) + request := models.ServiceBindingRequest{ + AppGuid: appGuid, + ServiceInstanceGuid: instanceGuid, + Params: paramsMap, + } + + jsonBytes, err := json.Marshal(request) + if err != nil { + return err + } + + return repo.gateway.CreateResource(repo.config.ApiEndpoint(), path, bytes.NewReader(jsonBytes)) } func (repo CloudControllerServiceBindingRepository) Delete(instance models.ServiceInstance, appGuid string) (found bool, apiErr error) { diff --git a/cf/api/service_bindings_test.go b/cf/api/service_bindings_test.go index 24916c1122b..fcc2eca6e6b 100644 --- a/cf/api/service_bindings_test.go +++ b/cf/api/service_bindings_test.go @@ -45,25 +45,54 @@ var _ = Describe("ServiceBindingsRepository", func() { }) Describe("Create", func() { + var requestMatcher testnet.RequestMatcher Context("when the service binding can be created", func() { BeforeEach(func() { + requestMatcher = testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid"}`) + }) + + JustBeforeEach(func() { setupTestServer(testapi.NewCloudControllerTestRequest(testnet.TestRequest{ Method: "POST", Path: "/v2/service_bindings", - Matcher: testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid"}`), + Matcher: requestMatcher, Response: testnet.TestResponse{Status: http.StatusCreated}, })) }) It("creates the service binding", func() { - apiErr := repo.Create("my-service-instance-guid", "my-app-guid") + apiErr := repo.Create("my-service-instance-guid", "my-app-guid", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(apiErr).NotTo(HaveOccurred()) }) + + Context("when there are arbitrary parameters", func() { + BeforeEach(func() { + requestMatcher = testnet.RequestBodyMatcher(`{"app_guid":"my-app-guid","service_instance_guid":"my-service-instance-guid", "parameters": { "foo": "bar"}}`) + }) + + It("send the parameters as part of the request body", func() { + paramsMap := map[string]interface{}{"foo": "bar"} + apiErr := repo.Create("my-service-instance-guid", "my-app-guid", paramsMap) + + Expect(testHandler).To(HaveAllRequestsCalled()) + Expect(apiErr).NotTo(HaveOccurred()) + }) + + Context("and there is a failure during serialization", func() { + It("returns the serialization error", func() { + paramsMap := make(map[string]interface{}) + paramsMap["data"] = make(chan bool) + + err := repo.Create("my-service-instance-guid", "my-app-guid", paramsMap) + Expect(err).To(MatchError("json: unsupported type: chan bool")) + }) + }) + }) }) - Context("when an error occurs", func() { + Context("when an API error occurs", func() { BeforeEach(func() { setupTestServer(testapi.NewCloudControllerTestRequest(testnet.TestRequest{ Method: "POST", @@ -77,7 +106,7 @@ var _ = Describe("ServiceBindingsRepository", func() { }) It("returns an error", func() { - apiErr := repo.Create("my-service-instance-guid", "my-app-guid") + apiErr := repo.Create("my-service-instance-guid", "my-app-guid", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(apiErr).To(HaveOccurred()) diff --git a/cf/commands/application/push.go b/cf/commands/application/push.go index 6c5cb1fc7c0..a1760a77066 100644 --- a/cf/commands/application/push.go +++ b/cf/commands/application/push.go @@ -247,7 +247,7 @@ func (cmd *Push) bindAppToServices(services []string, app models.Application) { "SpaceName": terminal.EntityNameColor(cmd.config.SpaceFields().Name), "Username": terminal.EntityNameColor(cmd.config.Username())})) - err = cmd.serviceBinder.BindApplication(app, serviceInstance) + err = cmd.serviceBinder.BindApplication(app, serviceInstance, nil) switch httpErr := err.(type) { case errors.HttpError: diff --git a/cf/commands/service/bind_service.go b/cf/commands/service/bind_service.go index a0763524dce..e1d311f0dcc 100644 --- a/cf/commands/service/bind_service.go +++ b/cf/commands/service/bind_service.go @@ -6,10 +6,12 @@ import ( "github.com/cloudfoundry/cli/cf/command_metadata" "github.com/cloudfoundry/cli/cf/configuration/core_config" "github.com/cloudfoundry/cli/cf/errors" + "github.com/cloudfoundry/cli/cf/flag_helpers" . "github.com/cloudfoundry/cli/cf/i18n" "github.com/cloudfoundry/cli/cf/models" "github.com/cloudfoundry/cli/cf/requirements" "github.com/cloudfoundry/cli/cf/terminal" + "github.com/cloudfoundry/cli/json" "github.com/codegangsta/cli" ) @@ -22,7 +24,7 @@ type BindService struct { } type ServiceBinder interface { - BindApplication(app models.Application, serviceInstance models.ServiceInstance) (apiErr error) + BindApplication(app models.Application, serviceInstance models.ServiceInstance, paramsMap map[string]interface{}) (apiErr error) } func NewBindService(ui terminal.UI, config core_config.Reader, serviceBindingRepo api.ServiceBindingRepository) (cmd *BindService) { @@ -39,6 +41,9 @@ func (cmd *BindService) Metadata() command_metadata.CommandMetadata { ShortName: "bs", Description: T("Bind a service instance to an app"), Usage: T("CF_NAME bind-service APP_NAME SERVICE_INSTANCE"), + Flags: []cli.Flag{ + flag_helpers.NewStringFlag("c", T("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.")), + }, } } @@ -65,6 +70,12 @@ func (cmd *BindService) GetRequirements(requirementsFactory requirements.Factory func (cmd *BindService) Run(c *cli.Context) { app := cmd.appReq.GetApplication() serviceInstance := cmd.serviceInstanceReq.GetServiceInstance() + params := c.String("c") + + paramsMap, err := json.ParseJsonFromFileOrString(params) + if err != nil { + cmd.ui.Failed("Invalid JSON provided in -c argument") + } cmd.ui.Say(T("Binding service {{.ServiceInstanceName}} to app {{.AppName}} in org {{.OrgName}} / space {{.SpaceName}} as {{.CurrentUser}}...", map[string]interface{}{ @@ -75,7 +86,7 @@ func (cmd *BindService) Run(c *cli.Context) { "CurrentUser": terminal.EntityNameColor(cmd.config.Username()), })) - err := cmd.BindApplication(app, serviceInstance) + err = cmd.BindApplication(app, serviceInstance, paramsMap) if err != nil { if httperr, ok := err.(errors.HttpError); ok && httperr.ErrorCode() == errors.APP_ALREADY_BOUND { cmd.ui.Ok() @@ -95,7 +106,7 @@ func (cmd *BindService) Run(c *cli.Context) { map[string]interface{}{"CFCommand": terminal.CommandColor(cf.Name() + " restage")})) } -func (cmd *BindService) BindApplication(app models.Application, serviceInstance models.ServiceInstance) (apiErr error) { - apiErr = cmd.serviceBindingRepo.Create(serviceInstance.Guid, app.Guid) +func (cmd *BindService) BindApplication(app models.Application, serviceInstance models.ServiceInstance, paramsMap map[string]interface{}) (apiErr error) { + apiErr = cmd.serviceBindingRepo.Create(serviceInstance.Guid, app.Guid, paramsMap) return } diff --git a/cf/commands/service/bind_service_test.go b/cf/commands/service/bind_service_test.go index fc07b41896d..81cfb159d2e 100644 --- a/cf/commands/service/bind_service_test.go +++ b/cf/commands/service/bind_service_test.go @@ -1,6 +1,9 @@ package service_test import ( + "io/ioutil" + "os" + "github.com/cloudfoundry/cli/cf/api" testapi "github.com/cloudfoundry/cli/cf/api/fakes" . "github.com/cloudfoundry/cli/cf/commands/service" @@ -108,6 +111,109 @@ var _ = Describe("bind-service command", func() { ui = callBindService([]string{"my-app", "my-service"}, requirementsFactory, serviceBindingRepo) Expect(ui.FailedWithUsage).To(BeFalse()) }) + + Context("when passing arbitrary params", func() { + var ( + app models.Application + serviceInstance models.ServiceInstance + ) + + BeforeEach(func() { + app = models.Application{} + app.Name = "my-app" + app.Guid = "my-app-guid" + + serviceInstance = models.ServiceInstance{} + serviceInstance.Name = "my-service" + serviceInstance.Guid = "my-service-guid" + + requirementsFactory.Application = app + requirementsFactory.ServiceInstance = serviceInstance + }) + + Context("as a json string", func() { + It("successfully creates a service and passes the params as a json string", func() { + serviceBindingRepo := &testapi.FakeServiceBindingRepo{} + ui := callBindService([]string{"my-app", "my-service", "-c", `{"foo": "bar"}`}, requirementsFactory, serviceBindingRepo) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"Binding service", "my-service", "my-app", "my-org", "my-space", "my-user"}, + []string{"OK"}, + []string{"TIP"}, + )) + Expect(serviceBindingRepo.CreateServiceInstanceGuid).To(Equal("my-service-guid")) + Expect(serviceBindingRepo.CreateApplicationGuid).To(Equal("my-app-guid")) + Expect(serviceBindingRepo.CreateParams).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + + Context("that are not valid json", func() { + It("returns an error to the UI", func() { + serviceBindingRepo := &testapi.FakeServiceBindingRepo{} + ui := callBindService([]string{"my-app", "my-service", "-c", `bad-json`}, requirementsFactory, serviceBindingRepo) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"FAILED"}, + []string{"Invalid JSON provided in -c argument"}, + )) + }) + }) + }) + + Context("as a file that contains json", func() { + var jsonFile *os.File + var params string + + BeforeEach(func() { + params = "{\"foo\": \"bar\"}" + }) + + AfterEach(func() { + if jsonFile != nil { + jsonFile.Close() + os.Remove(jsonFile.Name()) + } + }) + + JustBeforeEach(func() { + var err error + jsonFile, err = ioutil.TempFile("", "") + Expect(err).ToNot(HaveOccurred()) + + err = ioutil.WriteFile(jsonFile.Name(), []byte(params), os.ModePerm) + Expect(err).NotTo(HaveOccurred()) + }) + + It("successfully creates a service and passes the params as a json", func() { + serviceBindingRepo := &testapi.FakeServiceBindingRepo{} + ui := callBindService([]string{"my-app", "my-service", "-c", jsonFile.Name()}, requirementsFactory, serviceBindingRepo) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"Binding service", "my-service", "my-app", "my-org", "my-space", "my-user"}, + []string{"OK"}, + []string{"TIP"}, + )) + Expect(serviceBindingRepo.CreateServiceInstanceGuid).To(Equal("my-service-guid")) + Expect(serviceBindingRepo.CreateApplicationGuid).To(Equal("my-app-guid")) + Expect(serviceBindingRepo.CreateParams).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + + Context("that are not valid json", func() { + BeforeEach(func() { + params = "bad-json" + }) + + It("returns an error to the UI", func() { + serviceBindingRepo := &testapi.FakeServiceBindingRepo{} + ui := callBindService([]string{"my-app", "my-service", "-c", jsonFile.Name()}, requirementsFactory, serviceBindingRepo) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"FAILED"}, + []string{"Invalid JSON provided in -c argument"}, + )) + }) + }) + }) + }) }) }) diff --git a/cf/models/service_binding.go b/cf/models/service_binding.go index b30addd6c7d..1acff82b148 100644 --- a/cf/models/service_binding.go +++ b/cf/models/service_binding.go @@ -1,5 +1,11 @@ package models +type ServiceBindingRequest struct { + AppGuid string `json:"app_guid"` + ServiceInstanceGuid string `json:"service_instance_guid"` + Params map[string]interface{} `json:"parameters,omitempty"` +} + type ServiceBindingFields struct { Guid string Url string diff --git a/testhelpers/commands/fake_app_binder.go b/testhelpers/commands/fake_app_binder.go index 319b42fc533..b05c02d0cbc 100644 --- a/testhelpers/commands/fake_app_binder.go +++ b/testhelpers/commands/fake_app_binder.go @@ -5,15 +5,17 @@ import "github.com/cloudfoundry/cli/cf/models" type FakeAppBinder struct { AppsToBind []models.Application InstancesToBindTo []models.ServiceInstance + Params map[string]interface{} BindApplicationReturns struct { Error error } } -func (binder *FakeAppBinder) BindApplication(app models.Application, service models.ServiceInstance) error { +func (binder *FakeAppBinder) BindApplication(app models.Application, service models.ServiceInstance, paramsMap map[string]interface{}) error { binder.AppsToBind = append(binder.AppsToBind, app) binder.InstancesToBindTo = append(binder.InstancesToBindTo, service) + binder.Params = paramsMap return binder.BindApplicationReturns.Error } From cda6b2d69c6d3eff240612d37502f980e7230c63 Mon Sep 17 00:00:00 2001 From: Alex Ley and Greg Cobb Date: Fri, 8 May 2015 11:22:31 -0700 Subject: [PATCH 11/20] User can pass arbitary params during create-service-key Includes code for both json file and raw json [#90163332] [#90163330] --- cf/api/fakes/fake_service_key_repo.go | 4 +- cf/api/service_keys.go | 20 +++-- cf/api/service_keys_test.go | 34 +++++++- cf/commands/servicekey/create_service_key.go | 13 ++- .../servicekey/create_service_key_test.go | 79 +++++++++++++++++++ cf/models/service_key.go | 6 ++ 6 files changed, 146 insertions(+), 10 deletions(-) diff --git a/cf/api/fakes/fake_service_key_repo.go b/cf/api/fakes/fake_service_key_repo.go index 00f639f6a1b..efc8a1cd629 100644 --- a/cf/api/fakes/fake_service_key_repo.go +++ b/cf/api/fakes/fake_service_key_repo.go @@ -14,6 +14,7 @@ type FakeServiceKeyRepo struct { type CreateServiceKeyType struct { InstanceGuid string KeyName string + Params map[string]interface{} Error error } @@ -48,9 +49,10 @@ func NewFakeServiceKeyRepo() *FakeServiceKeyRepo { } } -func (f *FakeServiceKeyRepo) CreateServiceKey(instanceGuid string, serviceKeyName string) error { +func (f *FakeServiceKeyRepo) CreateServiceKey(instanceGuid string, serviceKeyName string, params map[string]interface{}) error { f.CreateServiceKeyMethod.InstanceGuid = instanceGuid f.CreateServiceKeyMethod.KeyName = serviceKeyName + f.CreateServiceKeyMethod.Params = params return f.CreateServiceKeyMethod.Error } diff --git a/cf/api/service_keys.go b/cf/api/service_keys.go index fb8a51f2bab..72ae3c65e49 100644 --- a/cf/api/service_keys.go +++ b/cf/api/service_keys.go @@ -1,9 +1,10 @@ package api import ( + "bytes" + "encoding/json" "fmt" "net/url" - "strings" "github.com/cloudfoundry/cli/cf/api/resources" "github.com/cloudfoundry/cli/cf/configuration/core_config" @@ -13,7 +14,7 @@ import ( ) type ServiceKeyRepository interface { - CreateServiceKey(serviceKeyGuid string, keyName string) error + CreateServiceKey(serviceKeyGuid string, keyName string, params map[string]interface{}) error ListServiceKeys(serviceKeyGuid string) ([]models.ServiceKey, error) GetServiceKey(serviceKeyGuid string, keyName string) (models.ServiceKey, error) DeleteServiceKey(serviceKeyGuid string) error @@ -31,11 +32,20 @@ func NewCloudControllerServiceKeyRepository(config core_config.Reader, gateway n } } -func (c CloudControllerServiceKeyRepository) CreateServiceKey(instanceGuid string, keyName string) error { +func (c CloudControllerServiceKeyRepository) CreateServiceKey(instanceGuid string, keyName string, params map[string]interface{}) error { path := "/v2/service_keys" - data := fmt.Sprintf(`{"service_instance_guid":"%s","name":"%s"}`, instanceGuid, keyName) - err := c.gateway.CreateResource(c.config.ApiEndpoint(), path, strings.NewReader(data)) + request := models.ServiceKeyRequest{ + Name: keyName, + ServiceInstanceGuid: instanceGuid, + Params: params, + } + jsonBytes, err := json.Marshal(request) + if err != nil { + return err + } + + err = c.gateway.CreateResource(c.config.ApiEndpoint(), path, bytes.NewReader(jsonBytes)) if httpErr, ok := err.(errors.HttpError); ok && httpErr.ErrorCode() == errors.SERVICE_KEY_NAME_TAKEN { return errors.NewModelAlreadyExistsError("Service key", keyName) diff --git a/cf/api/service_keys_test.go b/cf/api/service_keys_test.go index 6e30d0a5d29..18d695e47f8 100644 --- a/cf/api/service_keys_test.go +++ b/cf/api/service_keys_test.go @@ -52,7 +52,7 @@ var _ = Describe("Service Keys Repo", func() { Response: testnet.TestResponse{Status: http.StatusCreated}, })) - err := repo.CreateServiceKey("fake-instance-guid", "fake-key-name") + err := repo.CreateServiceKey("fake-instance-guid", "fake-key-name", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(err).NotTo(HaveOccurred()) }) @@ -67,7 +67,7 @@ var _ = Describe("Service Keys Repo", func() { Body: `{"code":360001,"description":"The service key name is taken: exist-service-key"}`}, })) - err := repo.CreateServiceKey("fake-instance-guid", "exist-service-key") + err := repo.CreateServiceKey("fake-instance-guid", "exist-service-key", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(err).To(BeAssignableToTypeOf(&errors.ModelAlreadyExistsError{})) }) @@ -82,11 +82,39 @@ var _ = Describe("Service Keys Repo", func() { Body: `{"code":10003,"description":"You are not authorized to perform the requested action"}`}, })) - err := repo.CreateServiceKey("fake-instance-guid", "fake-service-key") + err := repo.CreateServiceKey("fake-instance-guid", "fake-service-key", nil) Expect(testHandler).To(HaveAllRequestsCalled()) Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring("You are not authorized to perform the requested action")) }) + + Context("when there are parameters", func() { + It("sends the parameters as part of the request body", func() { + setupTestServer(testapi.NewCloudControllerTestRequest(testnet.TestRequest{ + Method: "POST", + Path: "/v2/service_keys", + Matcher: testnet.RequestBodyMatcher(`{"service_instance_guid":"fake-instance-guid","name":"fake-service-key","parameters": {"data": "hello"}}`), + Response: testnet.TestResponse{Status: http.StatusCreated}, + })) + + paramsMap := make(map[string]interface{}) + paramsMap["data"] = "hello" + + err := repo.CreateServiceKey("fake-instance-guid", "fake-service-key", paramsMap) + Expect(testHandler).To(HaveAllRequestsCalled()) + Expect(err).NotTo(HaveOccurred()) + }) + + Context("and there is a failure during serialization", func() { + It("returns the serialization error", func() { + paramsMap := make(map[string]interface{}) + paramsMap["data"] = make(chan bool) + + err := repo.CreateServiceKey("instance-name", "plan-guid", paramsMap) + Expect(err).To(MatchError("json: unsupported type: chan bool")) + }) + }) + }) }) Describe("ListServiceKeys", func() { diff --git a/cf/commands/servicekey/create_service_key.go b/cf/commands/servicekey/create_service_key.go index 221fb79db04..671e7a401a5 100644 --- a/cf/commands/servicekey/create_service_key.go +++ b/cf/commands/servicekey/create_service_key.go @@ -5,8 +5,10 @@ import ( "github.com/cloudfoundry/cli/cf/command_metadata" "github.com/cloudfoundry/cli/cf/configuration/core_config" "github.com/cloudfoundry/cli/cf/errors" + "github.com/cloudfoundry/cli/cf/flag_helpers" "github.com/cloudfoundry/cli/cf/requirements" "github.com/cloudfoundry/cli/cf/terminal" + "github.com/cloudfoundry/cli/json" "github.com/codegangsta/cli" . "github.com/cloudfoundry/cli/cf/i18n" @@ -37,6 +39,9 @@ func (cmd CreateServiceKey) Metadata() command_metadata.CommandMetadata { EXAMPLE: CF_NAME create-service-key mydb mykey`), + Flags: []cli.Flag{ + flag_helpers.NewStringFlag("c", T("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.")), + }, } } @@ -57,6 +62,12 @@ func (cmd CreateServiceKey) GetRequirements(requirementsFactory requirements.Fac func (cmd CreateServiceKey) Run(c *cli.Context) { serviceInstanceName := c.Args()[0] serviceKeyName := c.Args()[1] + params := c.String("c") + + paramsMap, err := json.ParseJsonFromFileOrString(params) + if err != nil { + cmd.ui.Failed(T("Invalid JSON provided in -c argument")) + } cmd.ui.Say(T("Creating service key {{.ServiceKeyName}} for service instance {{.ServiceInstanceName}} as {{.CurrentUser}}...", map[string]interface{}{ @@ -71,7 +82,7 @@ func (cmd CreateServiceKey) Run(c *cli.Context) { return } - err = cmd.serviceKeyRepo.CreateServiceKey(serviceInstance.Guid, serviceKeyName) + err = cmd.serviceKeyRepo.CreateServiceKey(serviceInstance.Guid, serviceKeyName, paramsMap) switch err.(type) { case nil: cmd.ui.Ok() diff --git a/cf/commands/servicekey/create_service_key_test.go b/cf/commands/servicekey/create_service_key_test.go index ee1b9fc89f2..7f7df6590a3 100644 --- a/cf/commands/servicekey/create_service_key_test.go +++ b/cf/commands/servicekey/create_service_key_test.go @@ -1,6 +1,9 @@ package servicekey_test import ( + "io/ioutil" + "os" + "github.com/cloudfoundry/cli/cf/configuration/core_config" "github.com/cloudfoundry/cli/cf/errors" "github.com/cloudfoundry/cli/cf/models" @@ -102,4 +105,80 @@ var _ = Describe("create-service-key command", func() { []string{"This service doesn't support creation of keys."})) }) }) + + Context("when passing arbitrary params", func() { + Context("as a json string", func() { + It("successfully creates a service key and passes the params as a json string", func() { + callCreateService([]string{"fake-service-instance", "fake-service-key", "-c", `{"foo": "bar"}`}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"Creating service key", "fake-service-key", "for service instance", "fake-service-instance", "as", "my-user"}, + []string{"OK"}, + )) + Expect(serviceKeyRepo.CreateServiceKeyMethod.InstanceGuid).To(Equal("fake-instance-guid")) + Expect(serviceKeyRepo.CreateServiceKeyMethod.KeyName).To(Equal("fake-service-key")) + Expect(serviceKeyRepo.CreateServiceKeyMethod.Params).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + }) + + Context("that are not valid json", func() { + It("returns an error to the UI", func() { + callCreateService([]string{"fake-service-instance", "fake-service-key", "-c", `bad-json`}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"FAILED"}, + []string{"Invalid JSON provided in -c argument"}, + )) + }) + }) + Context("as a file that contains json", func() { + var jsonFile *os.File + var params string + + BeforeEach(func() { + params = "{\"foo\": \"bar\"}" + }) + + AfterEach(func() { + if jsonFile != nil { + jsonFile.Close() + os.Remove(jsonFile.Name()) + } + }) + + JustBeforeEach(func() { + var err error + jsonFile, err = ioutil.TempFile("", "") + Expect(err).ToNot(HaveOccurred()) + + err = ioutil.WriteFile(jsonFile.Name(), []byte(params), os.ModePerm) + Expect(err).NotTo(HaveOccurred()) + }) + + It("successfully creates a service key and passes the params as a json", func() { + callCreateService([]string{"fake-service-instance", "fake-service-key", "-c", jsonFile.Name()}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"Creating service key", "fake-service-key", "for service instance", "fake-service-instance", "as", "my-user"}, + []string{"OK"}, + )) + Expect(serviceKeyRepo.CreateServiceKeyMethod.Params).To(Equal(map[string]interface{}{"foo": "bar"})) + }) + + Context("that are not valid json", func() { + BeforeEach(func() { + params = "bad-json" + }) + + It("returns an error to the UI", func() { + callCreateService([]string{"fake-service-instance", "fake-service-key", "-c", jsonFile.Name()}) + + Expect(ui.Outputs).To(ContainSubstrings( + []string{"FAILED"}, + []string{"Invalid JSON provided in -c argument"}, + )) + }) + }) + }) + }) }) diff --git a/cf/models/service_key.go b/cf/models/service_key.go index 1f1b3956597..f304cee31c9 100644 --- a/cf/models/service_key.go +++ b/cf/models/service_key.go @@ -8,6 +8,12 @@ type ServiceKeyFields struct { ServiceInstanceUrl string } +type ServiceKeyRequest struct { + Name string `json:"name"` + ServiceInstanceGuid string `json:"service_instance_guid"` + Params map[string]interface{} `json:"parameters,omitempty"` +} + type ServiceKey struct { Fields ServiceKeyFields Credentials map[string]interface{} From 0a4eb2366cef7b6acc8c9d86c67c84ccfd358ca0 Mon Sep 17 00:00:00 2001 From: Raina Masand Date: Mon, 18 May 2015 17:02:31 -0700 Subject: [PATCH 12/20] Add more examples to create-service help file - Arbitrary params examples and description [#89843658] --- cf/commands/service/create_service.go | 22 ++++++++++++++++++++-- cf/i18n/resources/de_DE.all.json | 6 +++--- cf/i18n/resources/en_US.all.json | 4 ++-- cf/i18n/resources/es_ES.all.json | 6 +++--- cf/i18n/resources/fr_FR.all.json | 6 +++--- cf/i18n/resources/it_IT.all.json | 6 +++--- cf/i18n/resources/ja_JA.all.json | 6 +++--- cf/i18n/resources/pt_BR.all.json | 6 +++--- cf/i18n/resources/zh_Hans.all.json | 6 +++--- cf/i18n/resources/zh_Hant.all.json | 6 +++--- 10 files changed, 46 insertions(+), 28 deletions(-) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index a6bedb90960..57030921f84 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -35,10 +35,28 @@ func (cmd CreateService) Metadata() command_metadata.CommandMetadata { Name: "create-service", ShortName: "cs", Description: T("Create a service instance"), - Usage: T(`CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE + Usage: T(`CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON] + +Optionally provide service-specific configuration parameters in a valid JSON object in-line: +CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{"name":"value","name":"value"}' + +Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. +CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE + +Example of valid JSON object: +{ + "cluster_nodes": { + "count": 5, + "memory_mb": 1024 + } +} EXAMPLE: - CF_NAME create-service dbaas silver mydb + CF_NAME create-service db-service silver mydb -c '{"ram_gb":4}' + CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json + +OPTIONS: + -c 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. TIP: Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps`), diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index 2caf14ac2d9..14e5ea22160 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service cleardb spark clear-db-mine\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index 4139195b605..ce35aa284df 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index 3ee2c5ecd35..d867abe934e 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service cleardb spark clear-db-mine\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index f2687cfe8ea..8845d4e7a1e 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN INSTANCE_DE_SERVICE\n\nExemple: CF_NAME create-service cleardb spark clear-db-mine\n\n:CONSEIL:\n Utilisez 'CF_NAME create-user-provided-service' pour rendre disponibles aux applications cf, les services fournis par l'utilisateur", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index 6be9718183f..2591a4f2fbd 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service cleardb spark clear-db-mine\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index 6be9718183f..2591a4f2fbd 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service cleardb spark clear-db-mine\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index 21dbbd08778..7b6ef1ae455 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVIÇO PLANO SERVICE_INSTANCE\n\nEXEMPLO:\n CF_NAME create-service cleardb spark clear-db-mine\n\nDICA:\n Utilize 'CF_NAME create-user-provided-service' para fazer com que serviços fornecidos pelo usuário sejam disponíveis para apps", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index e7a62b07245..490ba6d8697 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service 服务类型 服务计划 实例名称\n\n示例:\n CF_NAME create-service cleardb spark clear-db-mine\n\n小贴士:\n 使用'CF_NAME create-user-provided-service'来创建由用户提供的服务供应用使用。", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index 2caf14ac2d9..14e5ea22160 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -635,9 +635,9 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service dbaas silver mydb\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE\n\nEXAMPLE:\n CF_NAME create-service cleardb spark clear-db-mine\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "modified": true + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "modified": false }, { "id": "CF_NAME create-service-auth-token LABEL PROVIDER TOKEN", From ab3a781abb8dc242ba9be3d889ec6274ad005aaf Mon Sep 17 00:00:00 2001 From: Raina Masand Date: Mon, 18 May 2015 17:25:03 -0700 Subject: [PATCH 13/20] Remove repeated OPTIONS from create-service [#89843658] --- cf/commands/service/create_service.go | 3 --- cf/i18n/resources/de_DE.all.json | 4 ++-- cf/i18n/resources/en_US.all.json | 4 ++-- cf/i18n/resources/es_ES.all.json | 4 ++-- cf/i18n/resources/fr_FR.all.json | 4 ++-- cf/i18n/resources/it_IT.all.json | 4 ++-- cf/i18n/resources/ja_JA.all.json | 4 ++-- cf/i18n/resources/pt_BR.all.json | 4 ++-- cf/i18n/resources/zh_Hans.all.json | 4 ++-- cf/i18n/resources/zh_Hant.all.json | 4 ++-- 10 files changed, 18 insertions(+), 21 deletions(-) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index 57030921f84..aa0657d682e 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -55,9 +55,6 @@ EXAMPLE: CF_NAME create-service db-service silver mydb -c '{"ram_gb":4}' CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json -OPTIONS: - -c 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. - TIP: Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps`), Flags: []cli.Flag{ diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index 14e5ea22160..dd47b87d9a1 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index ce35aa284df..2d31b5c139a 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index d867abe934e..e2b40df8836 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index 8845d4e7a1e..fb397c3f144 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index 2591a4f2fbd..676a5d219c9 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index 2591a4f2fbd..676a5d219c9 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index 7b6ef1ae455..d9345167bd0 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index 490ba6d8697..1bab06a2f4d 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index 14e5ea22160..dd47b87d9a1 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nOPTIONS:\n -c 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.\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { From 0f3039606f9e54c8aebfe944d67b643019ec6ef5 Mon Sep 17 00:00:00 2001 From: Raina Masand Date: Mon, 18 May 2015 17:54:42 -0700 Subject: [PATCH 14/20] Correct formatting for create-service usage [#89843658] --- cf/commands/service/create_service.go | 26 +++++++++++++------------- cf/i18n/resources/de_DE.all.json | 4 ++-- cf/i18n/resources/en_US.all.json | 4 ++-- cf/i18n/resources/es_ES.all.json | 4 ++-- cf/i18n/resources/fr_FR.all.json | 4 ++-- cf/i18n/resources/it_IT.all.json | 4 ++-- cf/i18n/resources/ja_JA.all.json | 4 ++-- cf/i18n/resources/pt_BR.all.json | 4 ++-- cf/i18n/resources/zh_Hans.all.json | 4 ++-- cf/i18n/resources/zh_Hant.all.json | 4 ++-- 10 files changed, 31 insertions(+), 31 deletions(-) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index aa0657d682e..377b8fc6ada 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -37,19 +37,19 @@ func (cmd CreateService) Metadata() command_metadata.CommandMetadata { Description: T("Create a service instance"), Usage: T(`CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON] -Optionally provide service-specific configuration parameters in a valid JSON object in-line: -CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{"name":"value","name":"value"}' - -Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. -CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE - -Example of valid JSON object: -{ - "cluster_nodes": { - "count": 5, - "memory_mb": 1024 - } -} + Optionally provide service-specific configuration parameters in a valid JSON object in-line: + CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{"name":"value","name":"value"}' + + Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. + CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE + + Example of valid JSON object: + { + "cluster_nodes": { + "count": 5, + "memory_mb": 1024 + } + } EXAMPLE: CF_NAME create-service db-service silver mydb -c '{"ram_gb":4}' diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index dd47b87d9a1..89563b54519 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index 2d31b5c139a..902c9ce6e45 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index e2b40df8836..699cd027ce8 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index fb397c3f144..af086e6003f 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index 676a5d219c9..c53dd928cab 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index 676a5d219c9..c53dd928cab 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index d9345167bd0..dbb6acb5832 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index 1bab06a2f4d..92b8db9f7fe 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index dd47b87d9a1..89563b54519 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\nOptionally provide service-specific configuration parameters in a valid JSON object in-line:\nCF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\nOptionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\nCF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\nExample of valid JSON object:\n{\n\t\"cluster_nodes\": {\n\t\t\"count\": 5,\n\t\t\"memory_mb\": 1024\n\t}\n}\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { From 4015e11ac72974ccd759ff93ae4b8b9709225acd Mon Sep 17 00:00:00 2001 From: Raina Masand Date: Mon, 18 May 2015 17:36:37 -0700 Subject: [PATCH 15/20] Add detailed usage for update-service - In light of arbitrary params feature [#89843656] --- cf/commands/service/update_service.go | 21 ++++++++++++++++++++- cf/i18n/resources/de_DE.all.json | 4 ++-- cf/i18n/resources/en_US.all.json | 4 ++-- cf/i18n/resources/es_ES.all.json | 4 ++-- cf/i18n/resources/fr_FR.all.json | 4 ++-- cf/i18n/resources/it_IT.all.json | 4 ++-- cf/i18n/resources/ja_JA.all.json | 4 ++-- cf/i18n/resources/pt_BR.all.json | 4 ++-- cf/i18n/resources/zh_Hans.all.json | 4 ++-- cf/i18n/resources/zh_Hant.all.json | 4 ++-- 10 files changed, 38 insertions(+), 19 deletions(-) diff --git a/cf/commands/service/update_service.go b/cf/commands/service/update_service.go index 63782679267..4b791ab07a1 100644 --- a/cf/commands/service/update_service.go +++ b/cf/commands/service/update_service.go @@ -38,7 +38,26 @@ func (cmd *UpdateService) Metadata() command_metadata.CommandMetadata { return command_metadata.CommandMetadata{ Name: "update-service", Description: T("Update a service instance"), - Usage: T("CF_NAME update-service SERVICE [-p NEW_PLAN]"), + Usage: T(`CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON] + + Optionally provide service-specific configuration parameters in a valid JSON object in-line. + cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{"name":"value","name":"value"}' + + Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. + cf create-service SERVICE_INSTANCE -c PATH_TO_FILE + + Example of valid JSON object: + { + "cluster_nodes": { + "count": 5, + "memory_mb": 1024 + } + } + +EXAMPLE: + cf update-service mydb -p gold + cf update-service mydb -c '{"ram_gb":4}' + cf update-service mydb -c ~/workspace/tmp/instance_config.json`), Flags: []cli.Flag{ flag_helpers.NewStringFlag("p", T("Change service plan for a service instance")), flag_helpers.NewStringFlag("c", T("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.")), diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index 89563b54519..70be413fda5 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index 902c9ce6e45..dd1d75b6908 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index 699cd027ce8..4b1a7d7b12c 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index af086e6003f..20ea022f77b 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index c53dd928cab..46997d386df 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index c53dd928cab..46997d386df 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index dbb6acb5832..73a6d464fcd 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index 92b8db9f7fe..ead0c3177f9 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index 89563b54519..70be413fda5 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -1130,8 +1130,8 @@ "modified": false }, { - "id": "CF_NAME update-service SERVICE [-p NEW_PLAN]", - "translation": "CF_NAME update-service SERVICE [-p NEW_PLAN]", + "id": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME update-service SERVICE_INSTANCE [-p NEW_PLAN] [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n cf create--service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n cf create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n cf update-service mydb -p gold\n cf update-service mydb -c '{\"ram_gb\":4}'\n cf update-service mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { From 8dd44e2984b0e32e396f8a1169e308fca540707f Mon Sep 17 00:00:00 2001 From: Matthew Boedicker and Raina Masand Date: Tue, 19 May 2015 11:37:25 -0700 Subject: [PATCH 16/20] Add more description to bind-service usage - To reflect arbitrary params [#89843654] --- cf/commands/service/bind_service.go | 20 +++++++++++++++++++- cf/i18n/resources/de_DE.all.json | 6 +++--- cf/i18n/resources/en_US.all.json | 4 ++-- cf/i18n/resources/es_ES.all.json | 6 +++--- cf/i18n/resources/fr_FR.all.json | 6 +++--- cf/i18n/resources/it_IT.all.json | 6 +++--- cf/i18n/resources/ja_JA.all.json | 6 +++--- cf/i18n/resources/pt_BR.all.json | 6 +++--- cf/i18n/resources/zh_Hans.all.json | 6 +++--- cf/i18n/resources/zh_Hant.all.json | 6 +++--- 10 files changed, 45 insertions(+), 27 deletions(-) diff --git a/cf/commands/service/bind_service.go b/cf/commands/service/bind_service.go index e1d311f0dcc..938d6fd8ce2 100644 --- a/cf/commands/service/bind_service.go +++ b/cf/commands/service/bind_service.go @@ -40,7 +40,25 @@ func (cmd *BindService) Metadata() command_metadata.CommandMetadata { Name: "bind-service", ShortName: "bs", Description: T("Bind a service instance to an app"), - Usage: T("CF_NAME bind-service APP_NAME SERVICE_INSTANCE"), + Usage: T(`CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON] + + Optionally provide service-specific configuration parameters in a valid JSON object in-line. + CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{"name":"value","name":"value"}' + + Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. + CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE + + Example of valid JSON object: + { + "cluster_nodes": { + "count": 5, + "memory_mb": 1024 + } + } + +EXAMPLE: + CF_NAME bind-service myapp mydb -c '{"permissions":"read-only"}' + CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json`), Flags: []cli.Flag{ flag_helpers.NewStringFlag("c", T("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.")), }, diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index 70be413fda5..b458824e5a7 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP SERVICE_INSTANCE", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index dd1d75b6908..ef5118d19b3 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index 4b1a7d7b12c..831d6668072 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP SERVICE_INSTANCE", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index 20ea022f77b..41a6b9f7dfc 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind service APP INSTANCE_SERVICE", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index 46997d386df..c92875ce57d 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP SERVICE_INSTANCE", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index 46997d386df..c92875ce57d 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP SERVICE_INSTANCE", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index 73a6d464fcd..54d841288a8 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP INSTÂNCIA_DE_SERVIÇO", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index ead0c3177f9..f41a7310db1 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service 应用程序 服务实例", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index 70be413fda5..b458824e5a7 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -575,9 +575,9 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE", - "translation": "CF_NAME bind-service APP SERVICE_INSTANCE", - "modified": true + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "modified": false }, { "id": "CF_NAME bind-staging-security-group SECURITY_GROUP", From 22fd37a71d14eccbc79187891af5d33bb04f2068 Mon Sep 17 00:00:00 2001 From: Matthew Boedicker and Raina Masand Date: Tue, 19 May 2015 11:46:37 -0700 Subject: [PATCH 17/20] Add usage for service key arbitrary params. [#90163332] --- cf/commands/servicekey/create_service_key.go | 16 ++++++++++++++-- cf/i18n/resources/de_DE.all.json | 4 ++-- cf/i18n/resources/en_US.all.json | 4 ++-- cf/i18n/resources/es_ES.all.json | 4 ++-- cf/i18n/resources/fr_FR.all.json | 4 ++-- cf/i18n/resources/it_IT.all.json | 4 ++-- cf/i18n/resources/ja_JA.all.json | 4 ++-- cf/i18n/resources/pt_BR.all.json | 4 ++-- cf/i18n/resources/zh_Hans.all.json | 4 ++-- cf/i18n/resources/zh_Hant.all.json | 4 ++-- 10 files changed, 32 insertions(+), 20 deletions(-) diff --git a/cf/commands/servicekey/create_service_key.go b/cf/commands/servicekey/create_service_key.go index 671e7a401a5..5c3cc3fd3b0 100644 --- a/cf/commands/servicekey/create_service_key.go +++ b/cf/commands/servicekey/create_service_key.go @@ -35,10 +35,22 @@ func (cmd CreateServiceKey) Metadata() command_metadata.CommandMetadata { Name: "create-service-key", ShortName: "csk", Description: T("Create key for a service instance"), - Usage: T(`CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY + Usage: T(`CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON] + + Optionally provide service-specific configuration parameters in a valid JSON object in-line. + CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{"name":"value","name":"value"}' + + Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. + CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE + + Example of valid JSON object: + { + "permissions": "read-only" + } EXAMPLE: - CF_NAME create-service-key mydb mykey`), + CF_NAME create-service-key mydb mykey -c '{"permissions":"read-only"}' + CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json`), Flags: []cli.Flag{ flag_helpers.NewStringFlag("c", T("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.")), }, diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index b458824e5a7..dea48ca2e13 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index ef5118d19b3..bf584c9768a 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index 831d6668072..af4f1762051 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index 41a6b9f7dfc..568251dad55 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index c92875ce57d..922ecfc002a 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index c92875ce57d..922ecfc002a 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index 54d841288a8..d706e609c29 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index f41a7310db1..cac1d941a9c 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\n样例:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index b458824e5a7..dea48ca2e13 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -650,8 +650,8 @@ "modified": false }, { - "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", - "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey", + "id": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"permissions\": \"read-only\"\n }\n\nEXAMPLE:\n CF_NAME create-service-key mydb mykey -c '{\"permissions\":\"read-only\"}'\n CF_NAME create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json", "modified": false }, { From dd5eed9ce3d8e482fb549c5cfa6ccdcf9eacd9cd Mon Sep 17 00:00:00 2001 From: Greg Cobb and Liz Dahlstrom Date: Thu, 28 May 2015 17:51:15 -0700 Subject: [PATCH 18/20] Surface error when json from file is invalid - When parsing arbitrary parameters from a file path - Only read file contents if we know it's a file [#88670540] --- json/json_parser.go | 52 +++++++++++++++++++--------------- json/json_parser_test.go | 60 +++++++++++++--------------------------- 2 files changed, 49 insertions(+), 63 deletions(-) diff --git a/json/json_parser.go b/json/json_parser.go index 3e8e4630502..a1e1de11533 100644 --- a/json/json_parser.go +++ b/json/json_parser.go @@ -27,38 +27,36 @@ func ParseJsonArray(path string) ([]map[string]interface{}, error) { return stringMaps, nil } -func ParseJsonHash(path string) (map[string]interface{}, error) { - if path == "" { +func ParseJsonFromFileOrString(fileOrJson string) (map[string]interface{}, error) { + var jsonMap map[string]interface{} + var err error + var bytes []byte + + if fileOrJson == "" { return nil, nil } - bytes, err := readJsonFile(path) - if err != nil { - return nil, err + if fileExists(fileOrJson) { + bytes, err = readJsonFile(fileOrJson) + if err != nil { + return nil, err + } + } else { + bytes = []byte(fileOrJson) } - stringMap := map[string]interface{}{} - err = json.Unmarshal(bytes, &stringMap) + jsonMap, err = parseJson(bytes) + if err != nil { - return nil, errors.NewWithFmt("Incorrect json format: %s", err.Error()) + return nil, err } - return stringMap, nil + return jsonMap, nil } -func ParseJsonFromFileOrString(fileOrJson string) (map[string]interface{}, error) { - var jsonMap map[string]interface{} - var err error - - jsonMap, err = ParseJsonHash(fileOrJson) - if err != nil { - jsonMap = make(map[string]interface{}) - err = json.Unmarshal([]byte(fileOrJson), &jsonMap) - if err != nil && fileOrJson != "" { - return nil, err - } - } - return jsonMap, nil +func fileExists(path string) bool { + _, err := os.Stat(path) + return err == nil } func readJsonFile(path string) ([]byte, error) { @@ -74,3 +72,13 @@ func readJsonFile(path string) ([]byte, error) { return bytes, nil } + +func parseJson(bytes []byte) (map[string]interface{}, error) { + stringMap := map[string]interface{}{} + err := json.Unmarshal(bytes, &stringMap) + if err != nil { + return nil, errors.NewWithFmt("Incorrect json format: %s", err.Error()) + } + + return stringMap, nil +} diff --git a/json/json_parser_test.go b/json/json_parser_test.go index 909b29b2cd3..6050bb3e6de 100644 --- a/json/json_parser_test.go +++ b/json/json_parser_test.go @@ -47,54 +47,21 @@ var _ = Describe("JSON Parser", func() { It("tries to convert the json file but fails because it was given something it didn't like", func() { _, err := json.ParseJsonArray(filename) - Expect(err).ToNot(BeNil()) + Expect(err).To(MatchError("Incorrect json format: invalid character 'S' looking for beginning of value")) }) }) }) - Describe("ParseJsonHash", func() { - var filename string - var tmpFile *os.File - - Context("when everything is proper", func() { - BeforeEach(func() { - tmpFile, _ = ioutil.TempFile("", "") - filename = tmpFile.Name() - ioutil.WriteFile(filename, []byte("{\"akey\": \"avalue\"}"), 0644) - }) - - AfterEach(func() { - tmpFile.Close() - os.Remove(tmpFile.Name()) - }) + Describe("ParseJsonFromFileOrString", func() { + Context("when the input is empty", func() { + It("returns nil", func() { + result, err := json.ParseJsonFromFileOrString("") - It("converts a json file into an unmarshalled slice of string->string map objects", func() { - stringMap, err := json.ParseJsonHash(filename) + Expect(result).To(BeNil()) Expect(err).To(BeNil()) - Expect(stringMap["akey"]).To(Equal("avalue")) }) }) - Context("when the JSON is invalid", func() { - BeforeEach(func() { - tmpFile, _ = ioutil.TempFile("", "") - filename = tmpFile.Name() - ioutil.WriteFile(filename, []byte("SCARY NOISES}"), 0644) - }) - - AfterEach(func() { - tmpFile.Close() - os.Remove(tmpFile.Name()) - }) - - It("tries to convert the json file but fails because it was given something it didn't like", func() { - _, err := json.ParseJsonHash(filename) - Expect(err).ToNot(BeNil()) - }) - }) - }) - - Describe("ParseJsonFromFileOrString", func() { Context("when the input is a file", func() { var jsonFile *os.File var fileContent string @@ -133,12 +100,12 @@ var _ = Describe("JSON Parser", func() { It("returns an error", func() { _, err := json.ParseJsonFromFileOrString(jsonFile.Name()) - Expect(err).To(HaveOccurred()) + Expect(err).To(MatchError("Incorrect json format: invalid character 'b' looking for beginning of value")) }) }) }) - Context("when the input is a json string", func() { + Context("when the input is considered a json string (when it is not a file path)", func() { var jsonString string BeforeEach(func() { @@ -151,6 +118,17 @@ var _ = Describe("JSON Parser", func() { Expect(result).To(Equal(map[string]interface{}{"foo": "bar"})) }) + + Context("when the JSON is invalid", func() { + BeforeEach(func() { + jsonString = "SOMETHING IS WRONG" + }) + + It("returns a json parse error", func() { + _, err := json.ParseJsonFromFileOrString(jsonString) + Expect(err).To(MatchError("Incorrect json format: invalid character 'S' looking for beginning of value")) + }) + }) }) Context("when the input is neither a file nor a json string", func() { From 2e576100bb7f48f1016e78319377039347e8ec54 Mon Sep 17 00:00:00 2001 From: Liz Dahlstrom and Matthew Boedicker Date: Fri, 29 May 2015 10:25:54 -0700 Subject: [PATCH 19/20] Added the changes suggested in the pull request. - Errors no longer overwrite, they bubble up - Files are now checked for existance before reading [#89843658] --- cf/commands/service/bind_service.go | 14 +++++++++++--- cf/commands/service/bind_service_test.go | 2 +- cf/commands/service/create_service.go | 12 ++++++++++-- cf/i18n/resources/de_DE.all.json | 8 ++++---- cf/i18n/resources/en_US.all.json | 8 ++++---- cf/i18n/resources/es_ES.all.json | 8 ++++---- cf/i18n/resources/fr_FR.all.json | 8 ++++---- cf/i18n/resources/it_IT.all.json | 8 ++++---- cf/i18n/resources/ja_JA.all.json | 8 ++++---- cf/i18n/resources/pt_BR.all.json | 8 ++++---- cf/i18n/resources/zh_Hans.all.json | 8 ++++---- cf/i18n/resources/zh_Hant.all.json | 8 ++++---- 12 files changed, 58 insertions(+), 42 deletions(-) diff --git a/cf/commands/service/bind_service.go b/cf/commands/service/bind_service.go index 938d6fd8ce2..649654e33bf 100644 --- a/cf/commands/service/bind_service.go +++ b/cf/commands/service/bind_service.go @@ -57,8 +57,16 @@ func (cmd *BindService) Metadata() command_metadata.CommandMetadata { } EXAMPLE: - CF_NAME bind-service myapp mydb -c '{"permissions":"read-only"}' - CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json`), + Linux/Mac: + CF_NAME bind-service myapp mydb -c '{"permissions":"read-only"}' + + Windows Command Line + CF_NAME bind-service myapp mydb -c "{\"permissions\":\"read-only\"}" + + Windows PowerShell + CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}' + + CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json`), Flags: []cli.Flag{ flag_helpers.NewStringFlag("c", T("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.")), }, @@ -92,7 +100,7 @@ func (cmd *BindService) Run(c *cli.Context) { paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { - cmd.ui.Failed("Invalid JSON provided in -c argument") + cmd.ui.Failed("Invalid JSON provided in -c argument: " + err.Error()) } cmd.ui.Say(T("Binding service {{.ServiceInstanceName}} to app {{.AppName}} in org {{.OrgName}} / space {{.SpaceName}} as {{.CurrentUser}}...", diff --git a/cf/commands/service/bind_service_test.go b/cf/commands/service/bind_service_test.go index 81cfb159d2e..79b869f1161 100644 --- a/cf/commands/service/bind_service_test.go +++ b/cf/commands/service/bind_service_test.go @@ -153,7 +153,7 @@ var _ = Describe("bind-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid JSON provided in -c argument: Incorrect json format: invalid character 'b' looking for beginning of value"}, )) }) }) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index 377b8fc6ada..0ac6d987b8c 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -52,8 +52,16 @@ func (cmd CreateService) Metadata() command_metadata.CommandMetadata { } EXAMPLE: - CF_NAME create-service db-service silver mydb -c '{"ram_gb":4}' - CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json + Linux/Mac: + CF_NAME create-service db-service silver -c '{"ram_gb":4}' + + Windows Command Line + CF_NAME create-service db-service silver -c "{\"ram_gb\":4}" + + Windows PowerShell + CF_NAME create-service db-service silver -c '{\"ram_gb\":4}' + + CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json TIP: Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps`), diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index dea48ca2e13..acc5470fa4e 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index bf584c9768a..583b9102ca2 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index af4f1762051..076cf48161d 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index 568251dad55..0c0a3739fc3 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index 922ecfc002a..c1a16855390 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index 922ecfc002a..c1a16855390 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index d706e609c29..dacd49443dc 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index cac1d941a9c..8662e916bc3 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index dea48ca2e13..acc5470fa4e 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -575,8 +575,8 @@ "modified": false }, { - "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", - "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n CF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "id": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", + "translation": "CF_NAME bind-service APP_NAME SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME bind-service APP_NAME SERVICE_INSTANCE -c PATH_TO_FILE\n\n Example of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME bind-service myapp mydb -c '{\"permissions\":\"read-only\"}'\n\n\tWindows Command Line\n\t\tCF_NAME bind-service myapp mydb -c \"{\\\"permissions\\\":\\\"read-only\\\"}\"\n\n\tWindows PowerShell\n\t\tCF_NAME bind-service myapp mydb -c '{\\\"permissions\\\":\\\"read-only\\\"}'\n\t\n\tCF_NAME bind-service myapp mydb -c ~/workspace/tmp/instance_config.json", "modified": false }, { @@ -635,8 +635,8 @@ "modified": false }, { - "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", - "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n CF_NAME create-service db-service silver mydb -c '{\"ram_gb\":4}'\n CF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "id": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", + "translation": "CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON]\n\n Optionally provide service-specific configuration parameters in a valid JSON object in-line:\n CF_NAME create-service SERVICE PLAN SERVICE_INSTANCE -c '{\"name\":\"value\",\"name\":\"value\"}'\n\n Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file.\n CF_NAME create-service SERVICE_INSTANCE -c PATH_TO_FILE\n\n\tExample of valid JSON object:\n {\n \"cluster_nodes\": {\n \"count\": 5,\n \"memory_mb\": 1024\n }\n }\n\nEXAMPLE:\n\tLinux/Mac:\n\t\tCF_NAME create-service db-service silver -c '{\"ram_gb\":4}'\n\n\tWindows Command Line\n\t\tCF_NAME create-service db-service silver -c \"{\\\"ram_gb\\\":4}\"\n\n\tWindows PowerShell\n\t\tCF_NAME create-service db-service silver -c '{\\\"ram_gb\\\":4}'\n\n\tCF_NAME create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json\n\nTIP:\n Use 'CF_NAME create-user-provided-service' to make user-provided services available to cf apps", "modified": false }, { From eea2164143be053cff7ab5bb286eace4cd58e4d5 Mon Sep 17 00:00:00 2001 From: Greg Cobb and Raina Masand Date: Tue, 2 Jun 2015 10:37:35 -0700 Subject: [PATCH 20/20] Update arbitrary parameter error message - Sometimes it is unclear if the user is intending to provide a file path or JSON. Showing the underlying error in these cases can be confusing. [#89843658] --- cf/commands/service/bind_service.go | 2 +- cf/commands/service/bind_service_test.go | 4 ++-- cf/commands/service/create_service.go | 2 +- cf/commands/service/create_service_test.go | 4 ++-- cf/commands/service/update_service.go | 2 +- cf/commands/service/update_service_test.go | 4 ++-- cf/commands/servicekey/create_service_key.go | 2 +- cf/commands/servicekey/create_service_key_test.go | 4 ++-- cf/i18n/resources/de_DE.all.json | 10 +++++----- cf/i18n/resources/en_US.all.json | 10 +++++----- cf/i18n/resources/es_ES.all.json | 10 +++++----- cf/i18n/resources/fr_FR.all.json | 10 +++++----- cf/i18n/resources/it_IT.all.json | 10 +++++----- cf/i18n/resources/ja_JA.all.json | 10 +++++----- cf/i18n/resources/pt_BR.all.json | 10 +++++----- cf/i18n/resources/zh_Hans.all.json | 10 +++++----- cf/i18n/resources/zh_Hant.all.json | 10 +++++----- 17 files changed, 57 insertions(+), 57 deletions(-) diff --git a/cf/commands/service/bind_service.go b/cf/commands/service/bind_service.go index 649654e33bf..992c73c23a2 100644 --- a/cf/commands/service/bind_service.go +++ b/cf/commands/service/bind_service.go @@ -100,7 +100,7 @@ func (cmd *BindService) Run(c *cli.Context) { paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { - cmd.ui.Failed("Invalid JSON provided in -c argument: " + err.Error()) + cmd.ui.Failed(T("Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.")) } cmd.ui.Say(T("Binding service {{.ServiceInstanceName}} to app {{.AppName}} in org {{.OrgName}} / space {{.SpaceName}} as {{.CurrentUser}}...", diff --git a/cf/commands/service/bind_service_test.go b/cf/commands/service/bind_service_test.go index 79b869f1161..1f8f74c99bc 100644 --- a/cf/commands/service/bind_service_test.go +++ b/cf/commands/service/bind_service_test.go @@ -153,7 +153,7 @@ var _ = Describe("bind-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument: Incorrect json format: invalid character 'b' looking for beginning of value"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) @@ -208,7 +208,7 @@ var _ = Describe("bind-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) diff --git a/cf/commands/service/create_service.go b/cf/commands/service/create_service.go index 0ac6d987b8c..7150163c0f5 100644 --- a/cf/commands/service/create_service.go +++ b/cf/commands/service/create_service.go @@ -92,7 +92,7 @@ func (cmd CreateService) Run(c *cli.Context) { paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { - cmd.ui.Failed(T("Invalid JSON provided in -c argument")) + cmd.ui.Failed(T("Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.")) } cmd.ui.Say(T("Creating service instance {{.ServiceName}} in org {{.OrgName}} / space {{.SpaceName}} as {{.CurrentUser}}...", diff --git a/cf/commands/service/create_service_test.go b/cf/commands/service/create_service_test.go index fa0a80db343..c1709fe42d9 100644 --- a/cf/commands/service/create_service_test.go +++ b/cf/commands/service/create_service_test.go @@ -116,7 +116,7 @@ var _ = Describe("create-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) @@ -166,7 +166,7 @@ var _ = Describe("create-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) diff --git a/cf/commands/service/update_service.go b/cf/commands/service/update_service.go index 4b791ab07a1..611de8e078d 100644 --- a/cf/commands/service/update_service.go +++ b/cf/commands/service/update_service.go @@ -91,7 +91,7 @@ func (cmd *UpdateService) Run(c *cli.Context) { params := c.String("c") paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { - cmd.ui.Failed(T("Invalid JSON provided in -c argument")) + cmd.ui.Failed(T("Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.")) } if planName != "" { diff --git a/cf/commands/service/update_service_test.go b/cf/commands/service/update_service_test.go index 1eef326d5ce..f8c631078da 100644 --- a/cf/commands/service/update_service_test.go +++ b/cf/commands/service/update_service_test.go @@ -153,7 +153,7 @@ var _ = Describe("update-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) @@ -207,7 +207,7 @@ var _ = Describe("update-service command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) diff --git a/cf/commands/servicekey/create_service_key.go b/cf/commands/servicekey/create_service_key.go index 5c3cc3fd3b0..1c59c08eab0 100644 --- a/cf/commands/servicekey/create_service_key.go +++ b/cf/commands/servicekey/create_service_key.go @@ -78,7 +78,7 @@ func (cmd CreateServiceKey) Run(c *cli.Context) { paramsMap, err := json.ParseJsonFromFileOrString(params) if err != nil { - cmd.ui.Failed(T("Invalid JSON provided in -c argument")) + cmd.ui.Failed(T("Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.")) } cmd.ui.Say(T("Creating service key {{.ServiceKeyName}} for service instance {{.ServiceInstanceName}} as {{.CurrentUser}}...", diff --git a/cf/commands/servicekey/create_service_key_test.go b/cf/commands/servicekey/create_service_key_test.go index 7f7df6590a3..0b9d94236f3 100644 --- a/cf/commands/servicekey/create_service_key_test.go +++ b/cf/commands/servicekey/create_service_key_test.go @@ -127,7 +127,7 @@ var _ = Describe("create-service-key command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) @@ -175,7 +175,7 @@ var _ = Describe("create-service-key command", func() { Expect(ui.Outputs).To(ContainSubstrings( []string{"FAILED"}, - []string{"Invalid JSON provided in -c argument"}, + []string{"Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON."}, )) }) }) diff --git a/cf/i18n/resources/de_DE.all.json b/cf/i18n/resources/de_DE.all.json index acc5470fa4e..3243bbe2199 100644 --- a/cf/i18n/resources/de_DE.all.json +++ b/cf/i18n/resources/de_DE.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Invalid JSON response from server", @@ -2634,6 +2629,11 @@ "translation": "Invalid auth token: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/en_US.all.json b/cf/i18n/resources/en_US.all.json index 583b9102ca2..fd695bd2196 100644 --- a/cf/i18n/resources/en_US.all.json +++ b/cf/i18n/resources/en_US.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Invalid JSON response from server", @@ -2634,6 +2629,11 @@ "translation": "Invalid auth token: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/es_ES.all.json b/cf/i18n/resources/es_ES.all.json index 076cf48161d..eb14e194389 100644 --- a/cf/i18n/resources/es_ES.all.json +++ b/cf/i18n/resources/es_ES.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Respuesta JSON invalida del servidor", @@ -2634,6 +2629,11 @@ "translation": "Token de autenticacion inválido: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/fr_FR.all.json b/cf/i18n/resources/fr_FR.all.json index 0c0a3739fc3..ad8a72c2788 100644 --- a/cf/i18n/resources/fr_FR.all.json +++ b/cf/i18n/resources/fr_FR.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Serveur JSON réponse invalide", @@ -2634,6 +2629,11 @@ "translation": "Jeton auth invalide: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/it_IT.all.json b/cf/i18n/resources/it_IT.all.json index c1a16855390..ecfd63d3fbf 100644 --- a/cf/i18n/resources/it_IT.all.json +++ b/cf/i18n/resources/it_IT.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Invalid JSON response from server", @@ -2634,6 +2629,11 @@ "translation": "Invalid auth token: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/ja_JA.all.json b/cf/i18n/resources/ja_JA.all.json index c1a16855390..ecfd63d3fbf 100644 --- a/cf/i18n/resources/ja_JA.all.json +++ b/cf/i18n/resources/ja_JA.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Invalid JSON response from server", @@ -2634,6 +2629,11 @@ "translation": "Invalid auth token: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/pt_BR.all.json b/cf/i18n/resources/pt_BR.all.json index dacd49443dc..fa8528a474a 100644 --- a/cf/i18n/resources/pt_BR.all.json +++ b/cf/i18n/resources/pt_BR.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Resposta JSON do servidor inválida", @@ -2634,6 +2629,11 @@ "translation": "Token de autenticação inválido: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/zh_Hans.all.json b/cf/i18n/resources/zh_Hans.all.json index 8662e916bc3..884cd02c707 100644 --- a/cf/i18n/resources/zh_Hans.all.json +++ b/cf/i18n/resources/zh_Hans.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "无效的服务器JSON响应", @@ -2634,6 +2629,11 @@ "translation": "无效的身份验证令牌: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist", diff --git a/cf/i18n/resources/zh_Hant.all.json b/cf/i18n/resources/zh_Hant.all.json index acc5470fa4e..3243bbe2199 100644 --- a/cf/i18n/resources/zh_Hant.all.json +++ b/cf/i18n/resources/zh_Hant.all.json @@ -2604,11 +2604,6 @@ "translation": "Instance must be a non-negative integer", "modified": false }, - { - "id": "Invalid JSON provided in -c argument", - "translation": "Invalid JSON provided in -c argument", - "modified": false - }, { "id": "Invalid JSON response from server", "translation": "Invalid JSON response from server", @@ -2634,6 +2629,11 @@ "translation": "Invalid auth token: ", "modified": false }, + { + "id": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "translation": "Invalid configuration provided for -c flag. Please provide a valid JSON object or a file path containing valid JSON.", + "modified": false + }, { "id": "Invalid data from '{{.repoName}}' - plugin data does not exist", "translation": "Invalid data from '{{.repoName}}' - plugin data does not exist",