Set default value for all Select prompts (#6131)
This commit is contained in:
parent
9af193029b
commit
6955db471d
4 changed files with 19 additions and 18 deletions
|
|
@ -187,13 +187,11 @@ func loginRun(opts *LoginOptions) error {
|
|||
}
|
||||
|
||||
func promptForHostname(opts *LoginOptions) (string, error) {
|
||||
options := []string{"GitHub.com", "GitHub Enterprise Server"}
|
||||
hostType, err := opts.Prompter.Select(
|
||||
"What account do you want to log into?",
|
||||
"",
|
||||
[]string{
|
||||
"GitHub.com",
|
||||
"GitHub Enterprise Server",
|
||||
})
|
||||
options[0],
|
||||
options)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue