Skip to content

Commit

Permalink
allow login prompt to be interrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 4, 2017
1 parent bccf09f commit 7ab6c22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jiracli/password.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ func (o *GlobalOptions) GetPass() string {
if passwd != "" {
return passwd
}
survey.AskOne(
err := survey.AskOne(
&survey.Password{
Message: fmt.Sprintf("Jira Password [%s]: ", o.User),
},
&passwd,
nil,
)
if err != nil {
log.Errorf("%s", err)
panic(Exit{Code: 1})
}
o.SetPass(passwd)
return passwd
}
Expand Down

0 comments on commit 7ab6c22

Please sign in to comment.