Permalink
Browse files

fixes #135

  • Loading branch information...
LukasGentele committed Sep 10, 2018
1 parent dd072ee commit f5fc0b1039b61f4a548e13e88d7969085b480065
Showing with 58 additions and 3,015 deletions.
  1. +8 −4 cmd/init.go
  2. +0 −2,994 examples/nodejs/package-lock.json
  3. +13 −11 examples/nodejs/package.json
  4. +5 −4 pkg/devspace/generator/generator.go
  5. +32 −2 pkg/util/fsutil/filesystem.go
View
@@ -497,16 +497,20 @@ func (cmd *InitCmd) determineLanguage() {
if err != nil {
log.Fatalf("Unable to get supported languages: %s", err.Error())
}
cmd.chartGenerator.Language, _ = cmd.chartGenerator.GetLanguage()
detectedLang, langDetectionErr := cmd.chartGenerator.GetLanguage()
if cmd.chartGenerator.Language == "" {
cmd.chartGenerator.Language = "none"
if langDetectionErr != nil {
//log.Error(langDetectionErr)
}
if detectedLang == "" {
detectedLang = "none"
}
log.StopWait()
cmd.chartGenerator.Language = *stdinutil.GetFromStdin(&stdinutil.GetFromStdinParams{
Question: "What is the major programming language of your project?\nSupported languages: " + strings.Join(supportedLanguages, ", "),
DefaultValue: cmd.chartGenerator.Language,
DefaultValue: detectedLang,
ValidationRegexPattern: "^(" + strings.Join(supportedLanguages, ")|(") + ")$",
})
}
Oops, something went wrong.

0 comments on commit f5fc0b1

Please sign in to comment.