Ignore:
Timestamp:
03/06/19 09:20:33 (5 years ago)
Author:
nanardon
Message:

Move help from code to POD

File:
1 edited

Legend:

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

    r2229 r2231  
    9494        }, 
    9595    }); 
    96     $self->add_func('quit', { help => 'quit - exit the tool', 
     96 
     97=head3 quit 
     98 
     99Exit from C<CLI> tools 
     100 
     101=cut 
     102 
     103    $self->add_func('quit', { 
    97104            code => sub { print "\n"; exit(0) }, }); 
    98     $self->add_func('exit', { help => "exit current mode", 
     105 
     106=head3 exit 
     107 
     108Exit from current selection context 
     109 
     110=cut 
     111 
     112    $self->add_func('exit', { 
    99113            code => sub { return "EXIT" }, }); 
     114 
     115=head3 ! 
     116 
     117    ! [command [arg]] 
     118 
     119Open a shell command or run command under shell 
     120 
     121=cut 
     122 
    100123    $self->add_func('!', { 
    101124            code => sub { 
     
    256279    } ); 
    257280 
    258 =head2 log 
     281=head3 log 
    259282 
    260283    log [[-o otype ] object [object [...]]] 
     
    299322 
    300323    if ($self->base->can('CreateAlias')) { 
     324 
     325=head2 OBJECT ALIASES FUNCTION 
     326 
     327=head3 newalias 
     328 
     329    newalias objectType Name Object 
     330 
     331Create an object alias named C<Name> for object C<Object>. 
     332 
     333=cut 
     334 
    301335        $self->add_func( 
    302336            'newalias', { 
    303                 help => 'Create an alias object', 
    304337                code => sub { 
    305338                    my ($self, $otype, $name, $for) = @_; 
     
    320353            }, 
    321354        ); 
     355 
     356=head3 rmalias 
     357 
     358    rmalias objectType Name 
     359 
     360Delete alias named C<Name>. 
     361 
     362=cut 
     363 
    322364        $self->add_func( 
    323365            'rmalias', { 
    324                 help => 'Remove an alias object', 
    325366                code => sub { 
    326367                    my ($self, $otype, $name) = @_; 
     
    339380            }, 
    340381        ); 
     382 
     383=head3 updalias 
     384 
     385    updalias objectType Name Object 
     386 
     387Change the destination of an existing object alias 
     388 
     389=cut 
     390 
    341391        $self->add_func( 
    342392            'updalias', { 
    343                 help => 'Update an alias object', 
    344393                code => sub { 
    345394                    my ($self, $otype, $name, $for) = @_; 
Note: See TracChangeset for help on using the changeset viewer.