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
1 changed files with 7 additions and 0 deletions

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]