(prompt string, defaultValue bool)
| 174 | } |
| 175 | |
| 176 | func (p *huhPrompter) Confirm(prompt string, defaultValue bool) (bool, error) { |
| 177 | form, result := p.buildConfirmForm(prompt, defaultValue) |
| 178 | err := p.runForm(form) |
| 179 | if err != nil { |
| 180 | return false, err |
| 181 | } |
| 182 | return *result, nil |
| 183 | } |
| 184 | |
| 185 | func (p *huhPrompter) buildAuthTokenForm() (*huh.Form, *string) { |
| 186 | var result string |
nothing calls this directly
no test coverage detected