Sha256: f4198aef010e10abdbcbae94c3f6be63091cf76bde4794870c236831e612701b
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 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 history = @state.interface.history if @match[:num_cmds] size, _ = get_int(@match[:num_cmds], 'history', 1, history.size) return errmsg(err) unless size end puts history.to_s(size) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
byebug-3.5.1 | lib/byebug/commands/history.rb |
byebug-3.5.0 | lib/byebug/commands/history.rb |