Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a user name to password prompt #1141

Open
harri-halttunen-aktia opened this issue Nov 28, 2023 · 0 comments
Open

Add a user name to password prompt #1141

harri-halttunen-aktia opened this issue Nov 28, 2023 · 0 comments

Comments

@harri-halttunen-aktia
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant