Changeset 2432
- Timestamp:
- 07/03/20 09:49:37 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Base.pm
r2424 r2432 503 503 $self->add_func('log' => { 504 504 proxy => '*', 505 completion => sub { }, 505 completion => sub { 506 my ( $self, @args ) = @_; 507 if ($args[-1] =~ /^(-o|--object)/) { 508 return $self->base->list_supported_objects; 509 } else { 510 my @args = $self->getoption({ 511 'o|object=s' => \my $otype, 512 }, @_); 513 $otype ||= 'user'; 514 return ('-o', $self->base->list_objects( $otype )); 515 } 516 }, 506 517 code => sub { 507 518 my $env = shift; … … 521 532 522 533 foreach (@logs) { 523 $self->print (534 $self->printf( 524 535 "%s (%d), %s: %s/%s (%d) %s\n", 525 536 $_->{logdate},
Note: See TracChangeset
for help on using the changeset viewer.