From 1c1fd5cffff1c4dbb4d33365496ab07f63fc5964 Mon Sep 17 00:00:00 2001 From: Ramakrishna Pattnaik Date: Mon, 25 Jul 2022 12:26:12 +0530 Subject: [PATCH] fix(generate-config): update success message and default path for env Signed-off-by: Ramakrishna Pattnaik --- pkg/cmd/generate/configurations.go | 2 +- pkg/core/localize/locales/en/cmd/generate_config.en.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/generate/configurations.go b/pkg/cmd/generate/configurations.go index c17fcd9c3..804444c9c 100644 --- a/pkg/cmd/generate/configurations.go +++ b/pkg/cmd/generate/configurations.go @@ -57,7 +57,7 @@ func WriteConfig(opts *options, config *configValues) (string, error) { func getDefaultPath(configType string) (filePath string) { switch configType { case envFormat: - filePath = ".env" + filePath = "rhoas.env" case propertiesFormat: filePath = "rhoas.properties" case jsonFormat: diff --git a/pkg/core/localize/locales/en/cmd/generate_config.en.toml b/pkg/core/localize/locales/en/cmd/generate_config.en.toml index 2c64a3fe6..692ecc4a8 100644 --- a/pkg/core/localize/locales/en/cmd/generate_config.en.toml +++ b/pkg/core/localize/locales/en/cmd/generate_config.en.toml @@ -46,5 +46,8 @@ one='No services available to generate configurations' one=''' Configurations successfully saved to "{{.FilePath}}" -You can now create new service accounts or use existing ones to connect to the service(s) +You can now use existing service accounts or create new to connect to the services. +To create new service account, run this command: + + $ rhoas service-account create ''' \ No newline at end of file