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:
parent
4113c8f542
commit
bffe9d69af
2 changed files with 4 additions and 7 deletions
7
bin/pry
7
bin/pry
|
@ -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?
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue