(reg registry.Registry)
| 181 | } |
| 182 | |
| 183 | func chooseStack(reg registry.Registry) []string { |
| 184 | showInfoBox("A stack is a group of Zero modules. They will be pulled in from the registry and templated to create the different parts of your project such as infrastructure, backend, frontend, etc.") |
| 185 | |
| 186 | providerPrompt := promptui.Select{ |
| 187 | Label: "Pick the stack you'd like to use", |
| 188 | Items: registry.AvailableLabels(reg), |
| 189 | } |
| 190 | _, providerResult, err := providerPrompt.Run() |
| 191 | if err != nil { |
| 192 | exit.Fatal("Prompt failed %v\n", err) |
| 193 | } |
| 194 | |
| 195 | return registry.GetModulesByName(reg, providerResult) |
| 196 | } |
| 197 | |
| 198 | func defaultProjConfig() projectconfig.ZeroProjectConfig { |
| 199 | return projectconfig.ZeroProjectConfig{ |
no test coverage detected