Sha256: cdb940c482a28a036c0e949c347d1c8dec41ab1c9e90154d05f90ad7b55c1e11

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

# -*- coding: utf-8 -*-
# Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net>
require_relative '../base/subsubcmd'
require_relative '../base/subsubmgr'

class Trepan::SubSubcommand::ShowAuto < Trepan::SubSubcommandMgr
  unless defined?(HELP)
    HELP   = 'Show settings which some sort of "automatic" default behavior'
    NAME   = File.basename(__FILE__, '.rb')
    PREFIX = %W(show #{NAME})
    MIN_ABBREV = 'au'.size
  end
end

if __FILE__ == $0
  require_relative '../../mock'
  dbgr = MockDebugger::MockDebugger.new
  cmds = dbgr.core.processor.commands
  show_cmd = cmds['show']
  command = Trepan::SubSubcommand::ShowAuto.new(dbgr.core.processor, 
                                                  show_cmd)
  name = File.basename(__FILE__, '.rb')
  cmd_args = ['show', name]
  show_cmd.instance_variable_set('@last_args', cmd_args)
  command.run(cmd_args)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trepanning-0.0.9 processor/command/show_subcmd/auto.rb
trepanning-0.0.8 processor/command/show_subcmd/auto.rb
trepanning-0.0.6 processor/command/show_subcmd/auto.rb