shared/cmd/ask.go
func AskChoice(question string, choices []string, defaultAnswer string) string {
	for {
		answer := askQuestion(question, defaultAnswer)

		if shared.StringInSlice(answer, choices) {
			return answer
		}

		invalidInput()
	}
}
func AskChoice(question string, choices []string, defaultAnswer string) string {
	for {
		answer := askQuestion(question, defaultAnswer)

		if shared.StringInSlice(answer, choices) {
			return answer
		}

		invalidInput()
	}
}
func AskChoice ( question string , choices [ ] string , defaultAnswer string ) string { for { answer := askQuestion ( question , defaultAnswer ) if shared . StringInSlice ( answer , choices ) { return answer } invalidInput ( ) } }
// AskChoice asks the user to select one of multiple options
AskChoice asks the user to select one of multiple options