code: func (w *wizard) readDefaultYesNo(def bool) bool {
  	for {
  		fmt.Printf("> ")
  		text, err := w.in.ReadString('\n')
  		if err != nil {
  			log.Crit("Failed to read user input", "err", err)
  		}
  		if text = strings.ToLower(strings.TrimSpace(text)); text == "" {
  			return def
  		}
  		if text == "y" || text == "yes" {
  			return true
  		}
  		if text == "n" || text == "no" {
  			return false
  		}
  		log.Error("Invalid input, expected 'y', 'yes', 'n', 'no' or empty")
  	}
  }
docs: // readDefaultYesNo reads a single line from stdin, trimming if from spaces and
  // interpreting it as a 'yes' or a 'no'. If an empty line is entered, the default
  // value is returned.