Permalink
Browse files

Now password request hides the password

  • Loading branch information...
1 parent a1298a9 commit addd628caf055838aafa2a8d02eb1e0a8692d4b9 @adam000 adam000 committed Jun 27, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +2 −1 github.rb
View
@@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem "octokit", "~> 1.4.0"
+gem "highline"
View
@@ -3,6 +3,7 @@
require 'octokit'
require 'readline'
require 'shellwords'
+require 'highline/import'
module Github
##
@@ -61,7 +62,7 @@ def self.request_authorization(authorization_info)
puts "Authorizing..."
username ||= Readline.readline("github username: ", true)
- password = Readline.readline("github password: ", false)
+ password = ask("github password: ") { |q| q.echo = false }
octokit = Octokit::Client.new(:login => username, :password => password)

0 comments on commit addd628

Please sign in to comment.