Ask password to user when not provided#6
Conversation
Use getpass to ask the password to the user without outputting it. This happen only if the password is not set and is not running in CI mode.
|
Thanks, this looks like a sensible solution. Could you add a test in here to check that |
|
@alefranz Let me know if you need help adding tests? |
|
Hi @duncanhall, sorry for the delay. |
|
@alefranz There's an issue here with running the tests on a machine that does have the password set as an environment variable (eg, my local machine). In this case, If you can add permissions for me to commit to your fork I'll submit an update to fix this. |
|
Will get this released later today. Thanks for this, It's a good alternative to having passwords in plain text, I'm sure many will find it useful. 🔥 👍 |
|
Released in 1.9.0 |
|
@duncanhall Thanks for taking the time of fixing the tests and merging this PR. |
Currently the password need to be provided in clear or set in clear as environment variable.
This adds
getpassto ask the password to the user without outputting it.This happen only if the password is not set and is not running in CI mode.
Also includes the Contributor Agreement.