class Byebug::HistoryCommand


Show history of byebug commands.

def self.description

def self.description
  <<-DESCRIPTION
    hist[ory][ num_cmds]
    #{short_description}
  DESCRIPTION
end

def self.regexp

def self.regexp
  /^\s* hist(?:ory)? (?:\s+(?<num_cmds>.+))? \s*$/x
end

def self.short_description

def self.short_description
  "Shows byebug's history of commands"
end

def execute

def execute
  history = processor.interface.history
  size, = get_int(@match[:num_cmds], "history", 1) if @match[:num_cmds]
  puts history.to_s(size)
end