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

added 'reset' command (exec("pry")) to bin/pry executable

This commit is contained in:
John Mair 2011-04-10 02:23:24 +12:00
parent adc9661955
commit cf57d9a80d

View file

@ -68,6 +68,13 @@ end.parse!
# invoked via cli
Pry.cli = true
class Pry::Commands
command "reset", "Reset the REPL to a clean state." do
output.puts "Pry reset."
exec("pry")
end
end
# load ~/.pryrc, if not suppressed with -f option
Pry.should_load_rc = false if !options[:loadrc]