feat: switch to survey and add all prompts

This commit is contained in:
Allyedge
2022-05-30 12:22:58 +02:00
parent 7d84a82a50
commit d37af7762a
5 changed files with 113 additions and 134 deletions

View File

@@ -1,9 +1,7 @@
package cli
import (
"fmt"
"github.com/sern-handler/cli/pkg/components"
"github.com/sern-handler/cli/pkg/initialize"
"github.com/spf13/cobra"
)
@@ -12,10 +10,6 @@ var initCmd = &cobra.Command{
Short: "Initialize a new Sern project.",
Long: `Initialize a new Sern project, either with a JavaScript or a TypeScript template.`,
Run: func(cmd *cobra.Command, args []string) {
projectName := components.NewInput("What is your project's name?", "example-project")
language := components.NewSelection("What language do you want to use?", []string{"JavaScript", "TypeScript"})
fmt.Println(projectName + " " + language)
initialize.Initialize()
},
}