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

Function getProjectNamePrompt

internal/init/init.go:108–119  ·  view source on GitHub ↗

Project name is prompt individually because the rest of the prompts requires the projectName to populate defaults

()

Source from the content-addressed store, hash-verified

106// Project name is prompt individually because the rest of the prompts
107// requires the projectName to populate defaults
108func 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
121func getProjectPrompts(projectName string, modules map[string]moduleconfig.ModuleConfig) map[string]PromptHandler {
122 handlers := map[string]PromptHandler{

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected