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:
parent
adc9661955
commit
cf57d9a80d
1 changed files with 7 additions and 0 deletions
7
bin/pry
7
bin/pry
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue