Update internal/prompter/prompter.go

This commit is contained in:
Andy Feller 2025-04-28 11:16:35 -04:00 committed by GitHub
parent 2d66877d6c
commit df0aedbe3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,8 +137,8 @@ func (p *accessiblePrompter) Input(prompt, defaultValue string) (string, error)
func (p *accessiblePrompter) Password(prompt string) (string, error) {
var result string
// EchoModeNone and EchoModePassword both result in disabling echo mode
// as password masking is outside of VT100 spec.
// EchoModePassword is not used as password masking is unsupported in huh.
// EchoModeNone and EchoModePassword have the same effect of hiding user input.
form := p.newForm(
huh.NewGroup(
huh.NewInput().