exe/githelp in githelp-0.1.3 vs exe/githelp in githelp-0.1.4

- old
+ new

@@ -8,12 +8,12 @@ # % githelp -i README 8時間 比較 # マッチする候補を表示して選択 # # 追加すべきデータはdata.txtに書く -require "bundler/setup" require "githelp" +require "bundler/setup" include Githelp unless git_check STDERR.puts "Use 'githelp' in a Git repository." @@ -49,10 +49,11 @@ } list = githelp(" #{args.join(' ')} ") if opt_x then cmd = list[opt_x][1] + STDERR.puts cmd system "PATH=$PATH:#{progdir}/bin; (#{cmd})" exit else IO.popen("more","w"){ |f| list.each_with_index { |entry,ind| @@ -68,10 +69,10 @@ s = STDIN.readline if s =~ /[0-9]/ then i = s.to_i if i >= 0 && i < list.length then cmd = list[i][1] - puts cmd + STDERR.puts cmd system "PATH=$PATH:#{progdir}/bin; (#{cmd})" end end end end