1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

added new req command to basic.rb, expands paths and allows multiple files specified at once

This commit is contained in:
John Mair 2011-08-01 15:59:35 +11:00
parent ca14cfc3dc
commit 164e99f7c6

View file

@ -44,6 +44,10 @@ class Pry
end
end
command "req", "Require file(s) and expand their paths." do |*args|
args.each { |file_name| require File.expand_path(file_name) }
end
command "reset", "Reset the REPL to a clean state." do
output.puts "Pry reset."
exec "pry"