X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCommands.pm;h=057b63d78e30cb1347ccfe7939ca3cf3626414c0;hp=645d842817a6e99766d44121020f39699881310b;hb=796cd7ec80de14e45ca8221d545aceb7b9bc0b71;hpb=deda07fbc838971b06930a8f953928fe9d4786a9 diff --git a/lib/Devel/REPL/Plugin/Commands.pm b/lib/Devel/REPL/Plugin/Commands.pm index 645d842..057b63d 100644 --- a/lib/Devel/REPL/Plugin/Commands.pm +++ b/lib/Devel/REPL/Plugin/Commands.pm @@ -1,13 +1,18 @@ +use strict; +use warnings; package Devel::REPL::Plugin::Commands; +# ABSTRACT: Generic command creation plugin using injected functions + +our $VERSION = '1.003027'; use Devel::REPL::Plugin; use Scalar::Util qw(weaken); +use namespace::autoclean; -use namespace::clean -except => [ 'meta' ]; -use vars qw($COMMAND_INSTALLER); +our $COMMAND_INSTALLER; has 'command_set' => ( - is => 'ro', required => 1, + is => 'ro', lazy => 1, default => sub { {} } ); @@ -63,12 +68,3 @@ around 'compile' => sub { }; 1; - -__END__ - -=head1 NAME - -Devel::REPL::Plugin::Commands - Generic command creation plugin using injected functions - -=cut -