Sha256: 77464d2caee3180ae18f935428fe4117ebf0aa881e89dee68256a2f1897c6e4e

Contents?: true

Size: 842 Bytes

Versions: 8

Compression:

Stored size: 842 Bytes

Contents

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

class Trepan::Subcommand::ShowDifferent < Trepan::ShowBoolSubcommand
  unless defined?(HELP)
    Trepanning::Subcommand.set_name_prefix(__FILE__, self)
    HELP = "Show status of 'set different'"
    MIN_ABBREV   = 'dif'.size
  end

  def run(args)
    if 'nostack' == @proc.settings[:different]
      msg("different is nostack.")
    else
      super
    end
  end


end

if __FILE__ == $0
  # Demo it.
  require_relative '../../mock'

  # FIXME: DRY the below code
  dbgr, cmd = MockDebugger::setup('exit')
  subcommand = Trepan::Subcommand::ShowDifferent.new(cmd)
  testcmdMgr = Trepan::Subcmd.new(subcommand)

  subcommand.run_show_bool
  name = File.basename(__FILE__, '.rb')
  subcommand.summary_help(name)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trepanning-1.93.35 processor/command/show_subcmd/different.rb
trepanning-1.93.32 processor/command/show_subcmd/different.rb
trepanning-0.1.6 processor/command/show_subcmd/different.rb
trepanning-0.1.4 processor/command/show_subcmd/different.rb
trepanning-0.1.3 processor/command/show_subcmd/different.rb
trepanning-0.1.2 processor/command/show_subcmd/different.rb
trepanning-0.1.1 processor/command/show_subcmd/different.rb
trepanning-0.1.0 processor/command/show_subcmd/different.rb