diff --git a/Gemfile b/Gemfile index 566a137..e151b11 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,3 @@ source 'https://rubygems.org' gem "octokit", "~> 1.4.0" +gem "highline" diff --git a/github.rb b/github.rb index 75e9e49..d3684c4 100644 --- a/github.rb +++ b/github.rb @@ -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)