mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-07-13 05:09:09 +00:00
fix Double Prompting Issue when Reading Secret Input
This commit is contained in:
parent
94165a0f3d
commit
cbf2771935
3 changed files with 6 additions and 9 deletions
|
@ -53,8 +53,7 @@ func KeepassExport(cmd *cobra.Command, args []string) error {
|
|||
cmd.SilenceUsage = true
|
||||
|
||||
if keepassPassword == "" {
|
||||
fmt.Print("Enter Keepass Password:")
|
||||
pw, err := util.ReadPassword()
|
||||
pw, err := util.ReadPassword("Enter Keepass Password:")
|
||||
if err != nil {
|
||||
fmt.Println()
|
||||
return fmt.Errorf("Reading Keepass Password: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue