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

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