Move to Moo for fast bootstrapping.
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / Colors.pm
index 17592b8..bdc5e94 100644 (file)
@@ -1,17 +1,17 @@
 package Devel::REPL::Plugin::Colors;
 
-use Moose::Role;
+use Devel::REPL::Plugin;
 use Term::ANSIColor;
-use namespace::clean -except => [ 'meta' ];
+use namespace::sweep;
 
 has normal_color => (
   is => 'rw', lazy => 1,
-  default => 'green',
+  default => sub { 'green' },
 );
 
 has error_color => (
   is => 'rw', lazy => 1,
-  default => 'bold red',
+  default => sub { 'bold red' },
 );
 
 around format_error => sub {
@@ -26,6 +26,7 @@ around format_error => sub {
 around format_result => sub {
   my $orig = shift;
   my $self = shift;
+  no warnings 'uninitialized';
   return join "", (
     color($self->normal_color),
     $orig->($self, @_),