mirror of
https://github.com/sern-handler/cli
synced 2026-06-28 02:32:20 +00:00
feat: switch to survey and add all prompts
This commit is contained in:
@@ -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()
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user