mirror of
https://github.com/sern-handler/cli
synced 2026-06-24 08:42:28 +00:00
30 lines
427 B
Go
30 lines
427 B
Go
package initialize
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/AlecAivazis/survey/v2"
|
|
)
|
|
|
|
func Initialize() {
|
|
answers := struct {
|
|
Name string
|
|
Language string
|
|
Main string
|
|
Commands string
|
|
Prefix string
|
|
Git bool
|
|
Package string
|
|
}{}
|
|
|
|
err := survey.Ask(questions, &answers)
|
|
|
|
if err != nil {
|
|
fmt.Println("Project initialization failed, exiting.")
|
|
|
|
return
|
|
}
|
|
|
|
cloneRepository(answers.Name, answers.Language)
|
|
}
|