(prompt string)
| 153 | } |
| 154 | |
| 155 | func (p *huhPrompter) Password(prompt string) (string, error) { |
| 156 | form, result := p.buildPasswordForm(prompt) |
| 157 | err := p.runForm(form) |
| 158 | if err != nil { |
| 159 | return "", err |
| 160 | } |
| 161 | return *result, nil |
| 162 | } |
| 163 | |
| 164 | func (p *huhPrompter) buildConfirmForm(prompt string, defaultValue bool) (*huh.Form, *bool) { |
| 165 | result := defaultValue |
nothing calls this directly
no test coverage detected