Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
(fix): suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Oct 21, 2020
1 parent 50f6380 commit 5ac2b87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/inputfilesuggestion.go
Expand Up @@ -19,7 +19,7 @@ var q = []*survey.Question{
Prompt: &survey.Input{
Message: "Which file should be read?",
Suggest: suggestFiles,
Help: "Any file, may not even exit yet",
Help: "Any file; do not need to exist yet",
},
Validate: survey.Required,
},
Expand Down
2 changes: 1 addition & 1 deletion input.go
Expand Up @@ -45,7 +45,7 @@ var InputQuestionTemplate = `
{{- if .ShowAnswer}}
{{- color "cyan"}}{{.Answer}}{{color "reset"}}{{"\n"}}
{{- else if .PageEntries -}}
{{- .Answer}} [Use arrows to navegate, enter to select, type to complement answer]
{{- .Answer}} [Use arrows to move, enter to select, type to continue]
{{- "\n"}}
{{- range $ix, $choice := .PageEntries}}
{{- if eq $ix $.SelectedIndex }}{{color $.Config.Icons.SelectFocus.Format }}{{ $.Config.Icons.SelectFocus.Text }} {{else}}{{color "default"}} {{end}}
Expand Down
2 changes: 1 addition & 1 deletion input_test.go
Expand Up @@ -97,7 +97,7 @@ func TestInputRender(t *testing.T) {
SelectedIndex: 1,
},
fmt.Sprintf(
"%s What is your favorite month: February [Use arrows to navegate, enter to select, type to complement answer]\n"+
"%s What is your favorite month: February [Use arrows to move, enter to select, type to continue]\n"+
" January\n%s February\n March\n etc...\n",
defaultIcons().Question.Text, defaultPromptConfig().Icons.SelectFocus.Text,
),
Expand Down

0 comments on commit 5ac2b87

Please sign in to comment.