func NamePrompt(override *string, defaultValue string, autoAccept bool) (string, error) {
	var prompt promptui.Prompt

	label := "Name"
	if override != nil {
		label = *override
	}

	if autoAccept {
		err := validateSlug(strings.ToLower(label))(defaultValue)
		if err != nil {
			fmt.Println(promptui.FailedValue(label, defaultValue))
		} else {
			fmt.Println(promptui.SuccessfulValue(label, defaultValue))
		}
		return defaultValue, err
	}

	prompt = promptui.Prompt{
		Label:    label,
		Default:  defaultValue,
		Validate: validateSlug(strings.ToLower(label)),
	}
	return prompt.Run()
}
// NamePrompt prompts the user to input a person's name
NamePrompt prompts the user to input a person's name
// NamePrompt prompts the user to input a person ' s name
func NamePrompt(override *string, defaultValue string, autoAccept bool) (string, error) {
	var prompt promptui.Prompt
	label := "Name"
	if override != nil {
		label = *override
	}
	if autoAccept {
		err := validateSlug(strings.ToLower(label))(defaultValue)
		if err != nil {
			fmt.Println(promptui.FailedValue(label, defaultValue))
		} else {
			fmt.Println(promptui.SuccessfulValue(label, defaultValue))
		}
		return defaultValue, err
	}
	prompt = promptui.Prompt{
		Label:    label,
		Default:  defaultValue,
		Validate: validateSlug(strings.ToLower(label)),
	}
	return prompt.Run()
}
func NamePrompt ( override * string , defaultValue string , autoAccept bool ) ( string , error ) { var prompt promptui . Prompt label := " " if override != nil { label = * override } if autoAccept { err := validateSlug ( strings . ToLower ( label ) ) ( defaultValue ) if err != nil { fmt . Println ( promptui . FailedValue ( label , defaultValue ) ) } else { fmt . Println ( promptui . SuccessfulValue ( label , defaultValue ) ) } return defaultValue , err } prompt = promptui . Prompt { Label : label , Default : defaultValue , Validate : validateSlug ( strings . ToLower ( label ) ) , } return prompt . Run ( ) }
NamePrompt prompts the user to input a person's name
NamePrompt prompts the user to input a person ' s name