Setting the default for language selector (#815)

This commit is contained in:
Senthilnathan M 2022-02-07 14:40:53 +05:30 committed by GitHub
parent abd4eea0c7
commit 879031a245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -255,7 +255,6 @@ func newCreateConfig(args []string, clientFn createClientFn) (cfg createConfig,
Confirm: viper.GetBool("confirm"),
Verbose: viper.GetBool("verbose"),
}
// If not in confirm/prompting mode, this cfg structure is complete.
if !cfg.Confirm {
return
@ -447,7 +446,7 @@ func (c createConfig) prompt(client *fn.Client) (createConfig, error) {
Prompt: &survey.Select{
Message: "Language Runtime:",
Options: runtimes,
Default: c.Runtime,
Default: runtimes[0],
},
}}
if err := survey.Ask(qs, &c); err != nil {