Sha256: 3d73fa3547d5e5752c0ff2838eff6771bcc9e336fa8a1eaa59f8589334ed221f

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

Contents

# -*- coding: utf-8 -*-
# Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net>
require 'rubygems'; require 'require_relative'
require_relative 'base/submgr'

class Trepan::Command::ShowCommand < Trepan::SubcommandMgr
  unless defined?(HELP)
    NAME = File.basename(__FILE__, '.rb')
    HELP = <<-HELP
Generic command for showing things about the debugger.  You can
give unique prefix of the name of a subcommand to get information
about just that subcommand.

Type "#{NAME}" for a list of "show" subcommands and what they do.
Type "help #{NAME} *" for just a list of "show" subcommands.
    HELP

    CATEGORY      = 'status'
    NEED_STACK    = false
    SHORT_HELP    = 'Show parts of the debugger environment'
  end

  def run(args)
    if args.size > 1 
      first = args[1].downcase
      alen = 'auto'.size
      args[1..1] = ['auto', first[alen..-1]] if
        first.start_with?('auto') && first.size > alen
    end
    super
  end

end

if __FILE__ == $0
  require_relative '../mock'
  dbgr, cmd = MockDebugger::setup
  cmd.run([cmd.name])
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rbx-trepanning-0.2.1-universal-rubinius-2.0 processor/command/show.rb
rbx-trepanning-0.2.1-universal-rubinius-1.2 processor/command/show.rb
rbx-trepanning-0.2.0-universal-rubinius-2.0 processor/command/show.rb
rb8-trepanning-0.1.6 processor/command/show.rb
rb8-trepanning-0.1.5 processor/command/show.rb
rbx-trepanning-0.1.0-universal-rubinius-1.2 processor/command/show.rb
rb8-trepanning-0.1.4 processor/command/show.rb
rb8-trepanning-0.1.3 processor/command/show.rb
rb8-trepanning-0.1.3-universal-ruby-1.9.2 processor/command/show.rb
rb8-trepanning-0.1.3-universal-ruby-1.8.7 processor/command/show.rb
rbx-trepanning-0.0.8-universal-rubinius-1.2 processor/command/show.rb