blib/lib/Devel/Trepan/CmdProcessor/Command/Set_Subcmd/Confirm.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod n/a totaltotal 0.0% 0 / 42 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2011, 2014-2015 Rocky Bernstein <rocky@cpan.org>
3 use warnings; no warnings 'redefine'; no warnings 'once';
4 use rlib '../../../../..';
5  
6 package Devel::Trepan::CmdProcessor::Command::Set::Confirm;
7  
8 use Devel::Trepan::CmdProcessor::Command::Subcmd::Core;
9  
10 our @ISA = (Devel::Trepan::CmdProcessor::Command::SetBoolSubcmd);
11 use strict;
12 # Values inherited from parent
13 use vars @Devel::Trepan::CmdProcessor::Command::Subcmd::SUBCMD_VARS;
14  
15 ## FIXME: do automatically.
16 our $CMD = "set confirm";
17 =pod
18  
19 =head2 Synopsis:
20  
21 =cut
22  
23 our $HELP = <<"HELP";
24 =pod
25  
26 B<set confirm> [B<on>|B<off>]
27  
28 Set whether to confirm potentially dangerous operations.
29  
30 Note that some commands like
31 L<C<quit>|Devel::Trepan::CmdProcessor::Command::Quit> and
32 L<C<kill>|Devel::Trepan::CmdProcessor::Command::Kill> have a C<!>
33 suffix which turns the confirmation off in that specific instance.
34  
35 =head2 See also:
36  
37 L<C<show confirm>|Devel::Trepan::CmdProcessor::Command::Show::Confirm>
38  
39 =cut
40 HELP
41 our $SHORT_HELP = "Set whether to confirm potentially dangerous operations.";
42 our $MIN_ABBREV = length('con');
43  
44 unless (caller) {
45 # Demo it.
46 require Devel::Trepan::CmdProcessor::Mock;
47 my ($proc, $cmd) =
48 Devel::Trepan::CmdProcessor::Mock::subcmd_setup();
49 Devel::Trepan::CmdProcessor::Mock::subcmd_demo_bool($proc, $cmd);
50 }
51  
52 1;