« blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Max_Subcmd/String.pm
↑ Summary
blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Timer.pm »
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # Copyright (C) 2011, 2014 Rocky Bernstein <rocky@cpan.org> | ||
| 3 | use warnings; no warnings 'redefine'; no warnings 'once'; | ||
| 4 | use rlib '../../../../../..'; | ||
| 5 | |||
| 6 | package Devel::Trepan::CmdProcessor::Command::Show::Max::Width; | ||
| 7 | |||
| 8 | # require_relative '../../base/subsubcmd' | ||
| 9 | use Devel::Trepan::CmdProcessor::Command::Subcmd::Subsubcmd; | ||
| 10 | |||
| 11 | use strict; | ||
| 12 | use vars qw(@ISA @SUBCMD_VARS); | ||
| 13 | @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowIntSubsubcmd); | ||
| 14 | # Values inherited from parent | ||
| 15 | |||
| 16 | use vars @Devel::Trepan::CmdProcessor::Command::Subsubcmd::SUBCMD_VARS; | ||
| 17 | |||
| 18 | our $IN_LIST = 1; | ||
| 19 | our $MIN_ABBREV = length('wid'); | ||
| 20 | =pod | ||
| 21 | |||
| 22 | =head2 Synopsis: | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | our $HELP = <<"HELP"; | ||
| 27 | =pod | ||
| 28 | |||
| 29 | B<show max width> | ||
| 30 | |||
| 31 | Show the number of characters the debugger thinks are in a line. | ||
| 32 | |||
| 33 | =head2 See also: | ||
| 34 | |||
| 35 | L<C<set max width>|Devel::Trepan::CmdProcessor::Set::Max::Width> | ||
| 36 | |||
| 37 | =cut | ||
| 38 | HELP | ||
| 39 | |||
| 40 | our $SHORT_HELP = 'Show the number of characters the debugger thinks are in a line'; | ||
| 41 | |||
| 42 | unless (caller) { | ||
| 43 | # Demo it. | ||
| 44 | # require_relative '../../../mock' | ||
| 45 | # name = File.basename(__FILE__, '.rb') | ||
| 46 | |||
| 47 | # dbgr, show_cmd = MockDebugger::showup('show') | ||
| 48 | # max_cmd = Trepan::SubSubcommand::ShowMax.new(dbgr.core.processor, | ||
| 49 | # show_cmd) | ||
| 50 | # cmd_ary = Trepan::SubSubcommand::ShowMaxWidth::PREFIX | ||
| 51 | # cmd_name = cmd_ary.join(' ') | ||
| 52 | # subcmd = Trepan::SubSubcommand::ShowMaxWidth.new(show_cmd.proc, | ||
| 53 | # max_cmd, | ||
| 54 | # cmd_name) | ||
| 55 | # prefix_run = cmd_ary[1..-1] | ||
| 56 | # subcmd.run(prefix_run) | ||
| 57 | # subcmd.run(prefix_run + %w(0)) | ||
| 58 | # subcmd.run(prefix_run + %w(20)) | ||
| 59 | # name = File.basename(__FILE__, '.rb') | ||
| 60 | # subcmd.summary_help(name) | ||
| 61 | # puts | ||
| 62 | # puts '-' * 20 | ||
| 63 | # puts subcmd.save_command | ||
| 64 | } | ||
| 65 | |||
| 66 | 1; |