code: func (m *Meta) confirm(opts *terraform.InputOpts) (bool, error) {
  	if !m.Input() {
  		return false, errors.New("input is disabled")
  	}
  
  	for i := 0; i < 2; i++ {
  		v, err := m.UIInput().Input(context.Background(), opts)
  		if err != nil {
  			return false, fmt.Errorf(
  				"Error asking for confirmation: %s", err)
  		}
  
  		switch strings.ToLower(v) {
  		case "no":
  			return false, nil
  		case "yes":
  			return true, nil
  		}
  	}
  	return false, nil
  }
docs: // confirm asks a yes/no confirmation.