Documentation ¶
Index ¶
Constants ¶
View Source
const CLIVersion string = "0.1.0"
CLIVersion version of Create Go App CLI.
Variables ¶
View Source
var ( // EmbedMiscFiles misc files and configs. //go:embed misc/* EmbedMiscFiles embed.FS // EmbedTemplates template files. //go:embed templates/* EmbedTemplates embed.FS // CreateQuestions survey's questions for `create` command. CreateQuestions = []*survey.Question{ { Name: "backend", Prompt: &survey.Select{ Message: "Choose a backend framework:", Options: []string{ "fe-service", }, Default: "fe-service", PageSize: 1, }, Validate: survey.Required, }, { Name: "agree", Prompt: &survey.Confirm{ Message: "If everything is okay, can I create this project for you? ;)", Default: true, }, }, } // CustomCreateQuestions survey's questions for `create -c` command. CustomCreateQuestions = []*survey.Question{ { Name: "backend", Prompt: &survey.Input{ Message: "Enter URL to the custom backend repository:", }, Validate: survey.Required, }, { Name: "agree", Prompt: &survey.Confirm{ Message: "If everything is okay, can I create this project for you? ;)", Default: true, }, }, } )
Functions ¶
This section is empty.
Types ¶
type CreateAnswers ¶
CreateAnswers struct for a survey's answers for `create` command.
Click to show internal directories.
Click to hide internal directories.