(prompt, defaultValue string)
| 184 | } |
| 185 | |
| 186 | func (p *accessiblePrompter) Input(prompt, defaultValue string) (string, error) { |
| 187 | result := defaultValue |
| 188 | prompt = p.addDefaultsToPrompt(prompt, []string{defaultValue}) |
| 189 | form := p.newForm( |
| 190 | huh.NewGroup( |
| 191 | huh.NewInput(). |
| 192 | Title(prompt). |
| 193 | Value(&result), |
| 194 | ), |
| 195 | ) |
| 196 | |
| 197 | err := form.Run() |
| 198 | return result, err |
| 199 | } |
| 200 | |
| 201 | func (p *accessiblePrompter) Password(prompt string) (string, error) { |
| 202 | var result string |
nothing calls this directly
no test coverage detected