Skip to content

Commit 016ed6c

Browse files
committed
menu page size value
1 parent 5dacbd3 commit 016ed6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interactive_menu/menu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func InteractiveHostSelection(data map[string]map[string]map[string]interface{})
2424
Message: "Select Environment:",
2525
Options: allEnv,
2626
}
27-
if err := survey.AskOne(promptEnv, &selectedEnv, survey.WithIcons(func(icons *survey.IconSet) {
27+
if err := survey.AskOne(promptEnv, &selectedEnv, survey.WithPageSize(35), survey.WithIcons(func(icons *survey.IconSet) {
2828
icons.Question.Text = "--"
2929
icons.Question.Format = "magenta+hb"
3030
icons.SelectFocus.Format = "green+hb"
@@ -49,7 +49,7 @@ func InteractiveHostSelection(data map[string]map[string]map[string]interface{})
4949
Message: "Select Host:",
5050
Options: append(allHosts, "-->RETURN TO ENVIRONMENT SELECTION"),
5151
}
52-
if err := survey.AskOne(promptHost, &selectedHost, survey.WithIcons(func(icons *survey.IconSet) {
52+
if err := survey.AskOne(promptHost, &selectedHost, survey.WithPageSize(35), survey.WithIcons(func(icons *survey.IconSet) {
5353
icons.Question.Text = "--"
5454
icons.Question.Format = "magenta+hb"
5555
icons.SelectFocus.Format = "blue+hb"

0 commit comments

Comments
 (0)