From 164e99f7c60f0daa8ecb98f72ff1c738a0d6262f Mon Sep 17 00:00:00 2001 From: John Mair Date: Mon, 1 Aug 2011 15:59:35 +1100 Subject: [PATCH] added new req command to basic.rb, expands paths and allows multiple files specified at once --- lib/pry/default_commands/basic.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pry/default_commands/basic.rb b/lib/pry/default_commands/basic.rb index efafdd59..28e8be62 100644 --- a/lib/pry/default_commands/basic.rb +++ b/lib/pry/default_commands/basic.rb @@ -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"