MCPcopy Index your code
hub / github.com/commitdev/zero / chooseCloudProvider

Function chooseCloudProvider

internal/init/init.go:166–181  ·  view source on GitHub ↗
(projectConfig *projectconfig.ZeroProjectConfig)

Source from the content-addressed store, hash-verified

164}
165
166func chooseCloudProvider(projectConfig *projectconfig.ZeroProjectConfig) {
167 // @TODO move options into configs
168 providerPrompt := promptui.Select{
169 Label: "Select Cloud Provider",
170 Items: []string{"Amazon AWS", "Google GCP", "Microsoft Azure"},
171 }
172
173 _, providerResult, err := providerPrompt.Run()
174 if err != nil {
175 exit.Fatal("Prompt failed %v\n", err)
176 }
177
178 if providerResult != "Amazon AWS" {
179 exit.Fatal("Only the AWS provider is available at this time")
180 }
181}
182
183func 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.")

Callers

nothing calls this directly

Calls 1

FatalFunction · 0.92

Tested by

no test coverage detected