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:
parent
ca14cfc3dc
commit
164e99f7c6
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue