CPAN
view release on metacpan or search on metacpan
* bugfix: b command on unpublished bundles was broken due to wrong
handling of missing RO elements.
* bugfix: do not die when you cannot verify a signature, proceed with a
fail instead.
* new command "failed" reports about failed invocations of make, test or
install on CPAN::Distribution objects.
* Jim's bold fight against the FirstTime dragons continues.
2006-01-10 Andreas J. Koenig <andreas.koenig.gmwojprw@franz.ak.mind.de>
* release 1.83_52 is a work in progress: Jim is proceeding with the
dressage of the FirstTime. It actually contains shell.t.
2006-01-08 Andreas J. Koenig <andreas.koenig.gmwojprw@franz.ak.mind.de>
* release 1.83_51 brings
lib/App/Cpan.pm view on Meta::CPAN
my $scalar = '';
sub _hook_into_CPANpm_report
{
no warnings 'redefine';
*CPAN::Shell::myprint = sub {
my($self,$what) = @_;
$scalar .= $what if defined $what;
$self->print_ornamented($what,
$CPAN::Config->{colorize_print}||'bold blue on_white',
);
};
*CPAN::Shell::mywarn = sub {
my($self,$what) = @_;
$scalar .= $what if defined $what;
$self->print_ornamented($what,
$CPAN::Config->{colorize_warn}||'bold red on_white'
);
};
}
sub _clear_cpanpm_output { $scalar = '' }
sub _get_cpanpm_output { $scalar }
# These are lines I don't care about in CPAN.pm output. If I can
lib/CPAN/FirstTime.pm view on Meta::CPAN
if ("colorize_output colorize_print colorize_warn colorize_debug" =~ $matcher) {
my_yn_prompt(colorize_output => 0, $matcher);
if ($CPAN::Config->{colorize_output}) {
if ($CPAN::META->has_inst("Term::ANSIColor")) {
my $T="gYw";
$CPAN::Frontend->myprint( " on_ on_y ".
" on_ma on_\n") unless $auto_config;
$CPAN::Frontend->myprint( " on_black on_red green ellow ".
"on_blue genta on_cyan white\n") unless $auto_config;
for my $FG ("", "bold",
map {$_,"bold $_"} "black","red","green",
"yellow","blue",
"magenta",
"cyan","white") {
$CPAN::Frontend->myprint(sprintf( "%12s ", $FG)) unless $auto_config;
for my $BG ("",map {"on_$_"} qw(black red green yellow
blue magenta cyan white)) {
$CPAN::Frontend->myprint( $FG||$BG ?
Term::ANSIColor::colored(" $T ","$FG $BG") : " $T ") unless $auto_config;
}
$CPAN::Frontend->myprint( "\n" ) unless $auto_config;
}
$CPAN::Frontend->myprint( "\n" ) unless $auto_config;
}
for my $tuple (
["colorize_print", "bold blue on_white"],
["colorize_warn", "bold red on_white"],
["colorize_debug", "black on_cyan"],
) {
my_dflt_prompt($tuple->[0] => $tuple->[1], $matcher);
if ($CPAN::META->has_inst("Term::ANSIColor")) {
eval { Term::ANSIColor::color($CPAN::Config->{$tuple->[0]})};
if ($@) {
$CPAN::Config->{$tuple->[0]} = $tuple->[1];
$CPAN::Frontend->mywarn($@."setting to default '$tuple->[1]'\n");
}
}
lib/CPAN/Shell.pm view on Meta::CPAN
#-> sub CPAN::Shell::myprint ;
# where is myprint/mywarn/Frontend/etc. documented? Where to use what?
# I think, we send everything to STDOUT and use print for normal/good
# news and warn for news that need more attention. Yes, this is our
# working contract for now.
sub myprint {
my($self,$what) = @_;
$self->print_ornamented($what,
$CPAN::Config->{colorize_print}||'bold blue on_white',
);
}
my %already_printed;
#-> sub CPAN::Shell::mywarnonce ;
sub myprintonce {
my($self,$what) = @_;
$self->myprint($what) unless $already_printed{$what}++;
}
lib/CPAN/Shell.pm view on Meta::CPAN
#-> sub CPAN::Shell::myexit ;
sub myexit {
my($self,$what) = @_;
$self->myprint($what);
exit;
}
#-> sub CPAN::Shell::mywarn ;
sub mywarn {
my($self,$what) = @_;
$self->print_ornamented($what, $CPAN::Config->{colorize_warn}||'bold red on_white');
}
my %already_warned;
#-> sub CPAN::Shell::mywarnonce ;
sub mywarnonce {
my($self,$what) = @_;
$self->mywarn($what) unless $already_warned{$what}++;
}
# only to be used for shell commands
lib/CPAN/Shell.pm view on Meta::CPAN
# possible?
die "\n";
}
# sub CPAN::Shell::colorable_makemaker_prompt ;
sub colorable_makemaker_prompt {
my($foo,$bar,$ornament) = @_;
$ornament ||= "colorize_print";
if (CPAN::Shell->colorize_output) {
my $ornament = $CPAN::Config->{$ornament}||'bold blue on_white';
my $color_on = eval { Term::ANSIColor::color($ornament); } || "";
print $color_on;
}
my $ans = ExtUtils::MakeMaker::prompt($foo,$bar);
if (CPAN::Shell->colorize_output) {
print Term::ANSIColor::color('reset');
}
return $ans;
}
( run in 3.121 seconds using v1.01-cache-2.11-cpan-5dc5da66d9d )