summaryrefslogtreecommitdiff
path: root/lib/pry/commands/reset.rb
blob: 4414cbb54278bdb07b2b56ac8e46b0dfc39da0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Pry
  class Command::Reset < Pry::ClassCommand
    match 'reset'
    group 'Context'
    description 'Reset the REPL to a clean state.'

    banner <<-'BANNER'
      Reset the REPL to a clean state.
    BANNER

    def process
      output.puts 'Pry reset.'
      exec 'pry'
    end
  end

  Pry::Commands.add_command(Pry::Command::Reset)
end