Project name is prompt individually because the rest of the prompts requires the projectName to populate defaults
()
| 106 | // Project name is prompt individually because the rest of the prompts |
| 107 | // requires the projectName to populate defaults |
| 108 | func getProjectNamePrompt() PromptHandler { |
| 109 | return PromptHandler{ |
| 110 | Parameter: moduleconfig.Parameter{ |
| 111 | Field: "projectName", |
| 112 | Label: "Project Name", |
| 113 | Info: "This name will be used in most of the resources that are created and should be unique within an AWS account.", |
| 114 | Default: "", |
| 115 | }, |
| 116 | Condition: NoCondition, |
| 117 | Validate: ValidateProjectName, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func getProjectPrompts(projectName string, modules map[string]moduleconfig.ModuleConfig) map[string]PromptHandler { |
| 122 | handlers := map[string]PromptHandler{ |