Skip to content

Password Prompt outputs to stdout #393

Description

@sam-nolan-tearfund

Describe the bug
dcli read master password prompt outputs to stdout, which means it cannot be used within scripts:

To Reproduce

$ dcli read dl://<my-id>/content > out
$ bat out
───────┬────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: out
───────┼────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ ? Please enter your master password:? Please enter your master password: *? Please enter your m
       │ aster password: **? Please enter your master password: ***? Please enter your master password:
       │ ****? Please enter your master password: *****? Please enter your master password: ******? Plea
       │ se enter your master password: *******? Please enter your master password: ********? Please ent
       │ er your master password: *********? Please enter your master password: **********? Please enter
       │  your master password: ***********? Please enter your master password: ************? Please ent
       │ er your master password: *************? Please enter your master password: **************? Plea
       │ se enter your master password: ***************? Please enter your master password: ****************? Please enter your master password: *****************? Please enter your master password:
       │ ******************? Please enter your master password: *******************? Please enter your m
       │ aster password: ********************? Please enter your master password: *********************?
       │  Please enter your master password: **********************? Please enter your master password:
       │ ***********************? Please enter your master password: ************************? Please en
       │ ter your master password: ************************✔ Please enter your master password: ************************
       | <Secret>

Expected behavior
Prompt should be sent to stderr

Environment (please complete the following information):

  • OS: Ubuntu Server
  • dcli version 6.2612.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions