code: func AskForInt(ctx context.Context, text string, def int) (int, error) {
  	if ctxutil.IsAlwaysYes(ctx) {
  		return def, nil
  	}
  
  	str, err := AskForString(ctx, text, strconv.Itoa(def))
  	if err != nil {
  		return 0, err
  	}
  	if str == "q" {
  		return 0, ErrAborted
  	}
  	intVal, err := strconv.Atoi(str)
  	if err != nil {
  		return 0, errors.Wrapf(err, "failed to convert to number")
  	}
  	return intVal, nil
  }
docs: // AskForInt asks for an valid interger once. If the input
  // can not be converted to an int it returns an error