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
Is it possible to ask for a password? #108
Comments
Nops, we don't have this feature. last time I checked it was a bit complicated to implement in an OS agnostic way. |
If you'd like an example, check out the engineyard gem, which implements this using the highline gem. |
Thanks I know about highline it was just if it was possible with thor directly. |
Possibly a cleaner solution. cli = HighLine.new
password = cli.ask("Enter your password: ") { |q| q.echo = false } |
you can do something like:
|
Actually for future references if you come from google. With the latest version you can do
|
I'm trying to use thor in an script that asks a password, but I would prefere if it's not shown.
ask("fill your password:", :password => true) would be nice
or ask_password("fill your password")
Thanks in advance!
The text was updated successfully, but these errors were encountered: