Sha256: ae0026ef749ec48007898ebb2a874c7661e1297e09e9ca16beba01c6557cf25d
Contents?: true
Size: 638 Bytes
Versions: 2
Compression:
Stored size: 638 Bytes
Contents
require 'byebug/command' require 'byebug/helpers/parse' module Byebug # # Show history of byebug commands. # class HistoryCommand < Command include Helpers::ParseHelper 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 def description <<-EOD hist[ory] [num_cmds] Show byebug's command history. EOD end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sc_core-0.0.7 | test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/commands/history.rb |
byebug-5.0.0 | lib/byebug/commands/history.rb |