Skip to content

Commit 0e50b29

Browse files
committed
Add "enter" to CLI configure prompts
1 parent 0c0454d commit 0e50b29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/cmd/lib_cli_config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func getPromptValidation(defaults *CliConfig) *cr.PromptValidation {
5858
&cr.PromptItemValidation{
5959
StructField: "CortexURL",
6060
PromptOpts: &cr.PromptOptions{
61-
Prompt: "\nCortex operator endpoint",
61+
Prompt: "Enter Cortex operator endpoint",
6262
},
6363
StringValidation: cr.GetURLValidation(&cr.URLValidation{
6464
Required: true,
@@ -68,7 +68,7 @@ func getPromptValidation(defaults *CliConfig) *cr.PromptValidation {
6868
&cr.PromptItemValidation{
6969
StructField: "AWSAccessKeyID",
7070
PromptOpts: &cr.PromptOptions{
71-
Prompt: "AWS Access Key ID",
71+
Prompt: "Enter AWS Access Key ID",
7272
},
7373
StringValidation: &cr.StringValidation{
7474
Required: true,
@@ -78,7 +78,7 @@ func getPromptValidation(defaults *CliConfig) *cr.PromptValidation {
7878
&cr.PromptItemValidation{
7979
StructField: "AWSSecretAccessKey",
8080
PromptOpts: &cr.PromptOptions{
81-
Prompt: "AWS Secret Access Key",
81+
Prompt: "Enter AWS Secret Access Key",
8282
MaskDefault: true,
8383
HideTyping: true,
8484
},
@@ -177,7 +177,7 @@ func configure() *CliConfig {
177177
defaults := getDefaults()
178178

179179
cachedCliConfig = &CliConfig{}
180-
fmt.Println("\nEnvironment: " + flagEnv)
180+
fmt.Println("\nEnvironment: " + flagEnv + "\n")
181181
err := cr.ReadPrompt(cachedCliConfig, getPromptValidation(defaults))
182182
if err != nil {
183183
errors.Exit(err)

0 commit comments

Comments
 (0)