Sha256: d88807d6f3a9be568ff16cc9794051629a8058c5025234bd92ad11797693619d

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

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

class Trepan::SubSubcommand::SetAuto < Trepan::SubSubcommandMgr
  unless defined?(HELP)
    Trepanning::Subcommand.set_name_prefix(__FILE__, self)
    HELP   = <<-EOH
Set controls for things with some sort of "automatic" default behavior.

See "#{PREFIX.join(' ')} *" for a list of subcommands or "#{PREFIX.join(' ')} <name>" 
for help on a particular trace subcommand.
    EOH
    SHORT_HELP = 'Set controls for some "automatic" default behaviors'
  end
end

if __FILE__ == $0
  require_relative '../../mock'
  dbgr, cmd = MockDebugger::setup('set')
  # cmds = dbgr.core.processor.commands
  # set_cmd = cmds['set']
  # command = Trepan::SubSubcommand::SetAuto.new(dbgr.core.processor, 
  #                                              set_cmd)
  # name = File.basename(__FILE__, '.rb')
  # cmd_args = ['set', name]
  # set_cmd.instance_variable_set('@last_args', cmd_args)
  # # require_relative '../../../lib/trepanning'
  # # Trepan.debug(:set_restart => true)
  # command.run(cmd_args)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.6 processor/command/set_subcmd/auto.rb
rb8-trepanning-0.1.5 processor/command/set_subcmd/auto.rb
rb8-trepanning-0.1.4 processor/command/set_subcmd/auto.rb