Sha256: 326481cc0926c3dec79ec03d864139c5734b26c7876021e14b9f14568fe6bbf2
Contents?: true
Size: 749 Bytes
Versions: 4
Compression:
Stored size: 749 Bytes
Contents
module Byebug # # Show history of byebug commands. # class HistoryCommand < Command def regexp /^\s* hist(?:ory)? (?:\s+(?<num_cmds>.+))? \s*$/x end def execute unless Setting[:autosave] return errmsg('Not currently saving history. ' \ "Enable it with \"set autosave\"") end if @match[:num_cmds] size, err = get_int(@match[:num_cmds], 'history', 1, Setting[:histsize]) return errmsg(err) unless size end puts History.to_s(size || Setting[:histsize]) end class << self def names %w(history) end def description %(hist[ory] [num_cmds] Show byebug's command history.) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
byebug-3.4.2 | lib/byebug/commands/history.rb |
byebug-3.4.1 | lib/byebug/commands/history.rb |
byebug-3.4.0 | lib/byebug/commands/history.rb |
byebug-3.3.0 | lib/byebug/commands/history.rb |