github-education-resources / teachers_pet

Command line tool to help teachers use GitHub in their classrooms
https://education.github.com/guide
MIT License
187 stars 74 forks source link

Support password/token prompt #60

Closed afeld closed 10 years ago

afeld commented 10 years ago

For users who might not want their password/token in their command history, --password/--token without a value should give a prompt that hides the input.

http://stackoverflow.com/questions/2338889/how-to-hide-password-input-from-terminal-in-ruby-script

jkitchin commented 10 years ago

http://stackoverflow.com/questions/2338889/how-to-hide-password-input-from-terminal-in-ruby-script

tarebyte commented 10 years ago

I'll take this one, sounds like fun :smile:

tarebyte commented 10 years ago

@afeld right now on my branch if the user doesn't enter a token or password they are given a menu.

Please choose whether to give your password or GitHub token
1. Password
2. Token

From there, it will give them a hidden prompt to enter in the credentials.

Is this functionality you were looking for?