Move "reset" command Pry::DefaultCommands::Basic.

This commit is contained in:
Rob Gleeson 2011-05-19 19:10:16 +01:00
parent 4113c8f542
commit bffe9d69af
2 changed files with 4 additions and 7 deletions

View File

@ -50,13 +50,6 @@ end
# invoked via cli
Pry.cli = true
Pry::Commands.instance_eval do
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 = !opts.f?

View File

@ -27,6 +27,10 @@ class Pry
Pry.active_instance.commands.import set
end
command "reset", "Reset the REPL to a clean state." do
output.puts "Pry reset."
exec "pry"
end
end
end