MCPcopy Create free account
hub / github.com/auth0/auth0-cli / SelectInput

Function SelectInput

internal/prompt/prompt.go:107–121  ·  view source on GitHub ↗
(name string, message string, help string, options []string, defaultValue string, required bool)

Source from the content-addressed store, hash-verified

105}
106
107func SelectInput(name string, message string, help string, options []string, defaultValue string, required bool) *survey.Question {
108 // Force options "page" size to full,
109 // since there's not visual clue about extra options.
110 pageSize := len(options)
111 input := &survey.Question{
112 Name: name,
113 Prompt: &survey.Select{Message: message, Help: help, Options: options, PageSize: pageSize, Default: defaultValue},
114 }
115
116 if required {
117 input.Validate = survey.Required
118 }
119
120 return input
121}
122
123func PasswordInput(name string, message string, required bool) *survey.Question {
124 input := &survey.Question{

Callers 5

validateAndSelectScreensFunction · 0.92
_selectFunction · 0.92
loginCmdFunction · 0.92
resolveSetupTargetsFunction · 0.92
resolveAPIAppLinkFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected