mirror of
https://github.com/SrIzan10/sern-cli.git
synced 2026-05-01 11:05:17 +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)
|
|
}
|