(prompt string, help string, response any, defaultResponse bool)
| 108 | } |
| 109 | |
| 110 | func NewConfirmPromptWithDefault(prompt string, help string, response any, defaultResponse bool) *PA { |
| 111 | return &PA{ |
| 112 | Prompt: &survey.Confirm{ |
| 113 | Message: prompt, |
| 114 | Help: help, |
| 115 | Default: defaultResponse, |
| 116 | }, |
| 117 | Answer: response, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func NewMockAsker(t *testing.T, pa []*PA) (question.Asker, CheckRemaining) { |
| 122 | expectedQuestionIndex := 0 |
no outgoing calls