Skip to content

Add a user name to password prompt #1141

@harri-halttunen-aktia

Description

@harri-halttunen-aktia

Description

It would be helpful to have a user name in a password prompt similarly as pgcli does, for example.

In mycli the code creating a prompt is:

                        new_passwd = click.prompt('Password', hide_input=True,
                                                  show_default=False, type=str, err=True)

whereas in pgcli the prompt is created like this:

            passwd = click.prompt(
                "Password for %s" % user, hide_input=True, show_default=False, type=str
            )

So, the change would not be a major one but the helpfulness of this change would be.

Motivation

Usually user names are different for each environment (or at least should be) thus showing a user name in password prompt gives some extra confidence but also gives an easier way to trigger something based on what is written on terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions