Ignore:
Timestamp:
02/27/19 09:38:36 (5 years ago)
Author:
nanardon
Message:

More cli documentation in POD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli.pm

    r2216 r2226  
    4141    my $OUT = $self->Context->Out; 
    4242 
    43     $self->add_func('unexported', { 
    44         help => 'unexported yes|no|show - switch or show base mode regarding' . 
    45             ' unexported objects', 
    46         completion => sub { 
    47             if (!$_[2]) { 
    48                 return qw(yes no show); 
    49             } 
    50         }, 
    51         code => sub { 
    52             my ($self, $arg) = @_; 
    53             if ($arg eq 'yes') { 
    54                 $self->base->unexported(1); 
    55                 print $OUT "Unexported are now show\n"; 
    56             } elsif ($arg eq 'no') { 
    57                 $self->base->unexported(0); 
    58                 print $OUT "Unexported are no longer show\n"; 
    59             } elsif ($arg eq 'show') { 
    60                 print $OUT "Unexported objects " . ($self->base->unexported ? 
    61                 "enable" : "disable") . "\n"; 
    62             } else { 
    63                 print $OUT "wrong argument\n"; 
    64             } 
    65         }, 
    66     }); 
    6743    $self->add_func('ls', { 
    6844            help => 'ls object_type - list object of type object_type',  
Note: See TracChangeset for help on using the changeset viewer.