We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e095a91 commit 19a93b0Copy full SHA for 19a93b0
input/command.go
@@ -2,7 +2,6 @@ package input
2
3
import (
4
"fmt"
5
-
6
"os"
7
8
"github.com/charmbracelet/bubbles/key"
@@ -34,12 +33,9 @@ func (o Options) Run() error {
34
33
keymap := huh.NewDefaultKeyMap()
35
keymap.Quit = key.NewBinding(key.WithKeys("ctrl+c", "esc"))
36
37
- var echoMode huh.EchoMode
38
+ echoMode := huh.EchoModeNormal
39
if o.Password {
40
echoMode = huh.EchoModePassword
41
- } else {
42
- echoMode = huh.EchoModeNormal
43
}
44
45
err := huh.NewForm(
@@ -60,7 +56,6 @@ func (o Options) Run() error {
60
56
WithShowHelp(o.ShowHelp).
61
57
WithProgramOptions(tea.WithOutput(os.Stderr)).
62
58
Run()
63
64
59
if err != nil {
65
return err
66
0 commit comments