NAME

Paludis::UseCleaner::ConsoleUI - SubSpace for handling progress formatting of the cleaner.

VERSION

version 0.01000307

METHODS

skip_empty

$ui->skip_empty( $lineno, $line )

Notifies user a line has been skipped in the input due to it being empty. This line has been copied to the output ( cleaned ) file.

skip_star

$ui->skip_star( $lineno, $line )

Notifies user a line has been skipped in the input due to it being a * rule, and thus having far too many possible matches to compute respectably.

This line has been copied to the output ( cleaned ) file.

dot_trace

$ui->dot_trace( $symbol = '.' )

Prints a simple progress indicator when show_dot_trace is enabled.

nomatch

$ui->nomatch( $lineno, $line )

Notifies use that a line appeared to contain a rule and that rule matched no packages that exist, both uninstalled and installed, and is thus being removed from the output( cleaned ) file.

Just In case, this line is also copied to the rejects file.

full_rule

$extrasmap{VIDEO_CARDS} = \@cardlist;

$ui->full_rule( $spec, \@useflags, \%extrasmap )

Produces a debug tracing line showing the parsed result of the line as we perceive it internally.

ATTRIBUTES

show_skip_empty

$ui->show_skip_empty( 1 ); # enable showing the empty-line debug
$ui->show_skip_empty( 0 ); # disable ...

default is true

show_skip_star

$ui->show_skip_star( 1 ); # enable showing the * rule debug
$ui->show_skip_star( 0 ); # disable ...

default is true

show_dot_trace

$ui->show_dot_trace( 1 ); # enable showing the dot_trace's
$ui->show_dot_trace( 0 ); # disable ...

default is false

show_clean

$ui->show_clean( 1 ); # enable showing the clean notice
$ui->show_clean( 0 ); # disable ...

default is true

show_rules

$ui->show_rules( 1 ); # enable showing the rule debug
$ui->show_rules( 0 ); # disable ...

default is true

fd_debug

$ui->fd_debug( \*STDOUT ); # debug to stdout
$ui->fd_debug( $fh ); # debug to a filehandle

fd_dot_trace

$ui->fd_dot_trace( \*STDOUT ); # debug to stdout
$ui->fd_dot_trace( $fh ); # debug to a filehandle

PRIVATE METHODS

_message

->_message( $colour, $label, $line , $reason )

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Kent Fredric <kentnl@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.