Ignore:
Timestamp:
06/13/20 18:55:42 (4 years ago)
Author:
nanardon
Message:

la-cli: add | and > feature (act like in shell)

File:
1 edited

Legend:

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

    r2397 r2399  
    3737has La => ( is => 'ro' ); 
    3838has Out => ( is => 'ro' ); 
     39has TempOut => ( is => 'rw' ); 
    3940has Interractive => ( is => 'rw', isa => 'Bool', default => 1 ); 
    4041 
     
    6970sub print { 
    7071    my ( $self, @args ) = @_; 
    71     my $out = $self->Out; 
     72    my $out = $self->TempOut || $self->Out; 
    7273 
    7374    print $out @args; 
     
    8081sub printf { 
    8182    my ( $self, $str, @args ) = @_; 
    82     my $out = $self->Out; 
     83    my $out = $self->TempOut || $self->Out; 
    8384 
    8485    printf $out $str, @args; 
Note: See TracChangeset for help on using the changeset viewer.