@@ -445,8 +445,8 @@ var generateCmd = &cobra.Command{
445
445
if sample == "" {
446
446
if err := survey .AskOne (& survey.Select {
447
447
Message : "Choose the language you'd like to use:" ,
448
- Options : []string {"Nodejs " , "Golang " , "Python" },
449
- Default : "Nodejs " ,
448
+ Options : []string {"JavaScript " , "Go " , "Python" },
449
+ Default : "JavaScript " ,
450
450
Help : "The project code will be in the language you choose here." ,
451
451
}, & language ); err != nil {
452
452
return err
@@ -461,7 +461,11 @@ var generateCmd = &cobra.Command{
461
461
sampleNames := []string {generateWithAI }
462
462
sampleDescriptions := []string {"Generate a sample from scratch using a language prompt" }
463
463
for _ , sample := range sampleList {
464
- if slices .Contains (sample .Languages , lang ) {
464
+ sampleLangs := make ([]string , len (sample .Languages ))
465
+ for _ , l := range sample .Languages {
466
+ sampleLangs = append (sampleLangs , strings .ToLower (l ))
467
+ }
468
+ if slices .Contains (sampleLangs , lang ) {
465
469
sampleNames = append (sampleNames , sample .Name )
466
470
sampleDescriptions = append (sampleDescriptions , sample .ShortDescription )
467
471
}
0 commit comments