Documentation
¶
Index ¶
Constants ¶
View Source
const CLIVersion string = "4.1.0"
CLIVersion version of Create Go App CLI.
Variables ¶
View Source
var ( // EmbedMiscFiles misc files and configs. //go:embed misc/* EmbedMiscFiles embed.FS // EmbedRoles Ansible roles. //go:embed roles/* EmbedRoles 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{ "net/http", "fiber", "chi", }, Default: "fiber", PageSize: 3, }, Validate: survey.Required, }, { Name: "frontend", Prompt: &survey.Select{ Message: "Choose a frontend framework/library:", Help: "Option with a `*-ts` tail will create a TypeScript template.", Options: []string{ "none", "vanilla", "vanilla-ts", "react", "react-ts", "react-swc", "react-swc-ts", "preact", "preact-ts", "next", "next-ts", "nuxt", "vue", "vue-ts", "svelte", "svelte-ts", "solid", "solid-ts", "lit", "lit-ts", "qwik", "qwik-ts", }, Default: "none", PageSize: 21, }, }, { Name: "proxy", Prompt: &survey.Select{ Message: "Choose a web/proxy server:", Options: []string{ "none", "traefik", "traefik-acme-dns", "nginx", }, Default: "none", PageSize: 4, }, }, { 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: "frontend", Prompt: &survey.Input{ Message: "Enter URL to the custom frontend repository:", Default: "none", }, }, { Name: "proxy", Prompt: &survey.Select{ Message: "Choose a web/proxy server:", Options: []string{ "none", "traefik", "traefik-acme-dns", "nginx", }, Default: "none", PageSize: 4, }, }, { Name: "agree", Prompt: &survey.Confirm{ Message: "If everything is okay, can I create this project for you? ;)", Default: true, }, }, } // AnsibleInventoryVariables list of variables for inventory. AnsibleInventoryVariables = map[string]*Variables{ "none": { List: map[string]interface{}{ "Proxy": "none", }, }, "traefik": { List: map[string]interface{}{ "Proxy": "traefik", "Wildcard": false, }, }, "traefik-acme-dns": { List: map[string]interface{}{ "Proxy": "traefik", "Wildcard": true, }, }, "nginx": { List: map[string]interface{}{ "Proxy": "nginx", }, }, } // AnsiblePlaybookVariables list of variables for playbook. AnsiblePlaybookVariables = map[string]*Variables{ "none": { List: map[string]interface{}{ "Proxy": "none", }, }, "traefik": { List: map[string]interface{}{ "Proxy": "traefik", }, }, "traefik-acme-dns": { List: map[string]interface{}{ "Proxy": "traefik", }, }, "nginx": { List: map[string]interface{}{ "Proxy": "nginx", }, }, } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.