Changeset 2231 for trunk/LATMOS-Accounts/lib/LATMOS
- Timestamp:
- 03/06/19 09:20:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Base.pm
r2229 r2231 94 94 }, 95 95 }); 96 $self->add_func('quit', { help => 'quit - exit the tool', 96 97 =head3 quit 98 99 Exit from C<CLI> tools 100 101 =cut 102 103 $self->add_func('quit', { 97 104 code => sub { print "\n"; exit(0) }, }); 98 $self->add_func('exit', { help => "exit current mode", 105 106 =head3 exit 107 108 Exit from current selection context 109 110 =cut 111 112 $self->add_func('exit', { 99 113 code => sub { return "EXIT" }, }); 114 115 =head3 ! 116 117 ! [command [arg]] 118 119 Open a shell command or run command under shell 120 121 =cut 122 100 123 $self->add_func('!', { 101 124 code => sub { … … 256 279 } ); 257 280 258 =head 2log281 =head3 log 259 282 260 283 log [[-o otype ] object [object [...]]] … … 299 322 300 323 if ($self->base->can('CreateAlias')) { 324 325 =head2 OBJECT ALIASES FUNCTION 326 327 =head3 newalias 328 329 newalias objectType Name Object 330 331 Create an object alias named C<Name> for object C<Object>. 332 333 =cut 334 301 335 $self->add_func( 302 336 'newalias', { 303 help => 'Create an alias object',304 337 code => sub { 305 338 my ($self, $otype, $name, $for) = @_; … … 320 353 }, 321 354 ); 355 356 =head3 rmalias 357 358 rmalias objectType Name 359 360 Delete alias named C<Name>. 361 362 =cut 363 322 364 $self->add_func( 323 365 'rmalias', { 324 help => 'Remove an alias object',325 366 code => sub { 326 367 my ($self, $otype, $name) = @_; … … 339 380 }, 340 381 ); 382 383 =head3 updalias 384 385 updalias objectType Name Object 386 387 Change the destination of an existing object alias 388 389 =cut 390 341 391 $self->add_func( 342 392 'updalias', { 343 help => 'Update an alias object',344 393 code => sub { 345 394 my ($self, $otype, $name, $for) = @_;
Note: See TracChangeset
for help on using the changeset viewer.