(q survey.Prompt, response interface{}, opts ...survey.AskOpt)
| 576 | } |
| 577 | |
| 578 | func (p *surveyPrompter) ask(q survey.Prompt, response interface{}, opts ...survey.AskOpt) error { |
| 579 | opts = append(opts, survey.WithStdio(p.stdin, p.stdout, p.stderr)) |
| 580 | err := survey.AskOne(q, response, opts...) |
| 581 | if err == nil { |
| 582 | return nil |
| 583 | } |
| 584 | return fmt.Errorf("could not prompt: %w", err) |
| 585 | } |
no test coverage detected