X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletionDriver%2FGlobals.pm;h=ff500e384e843b01c0446af0e01b577e50b6d0d5;hp=df2f900d077ebe55488c4346419811d73774bb17;hb=5ac988901b5ccbf3b31cdf980534d0c9631d9e4a;hpb=cfd1094b45c394258ccda08216f1435bf40e1d50 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm index df2f900..ff500e3 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm @@ -1,6 +1,18 @@ +use strict; +use warnings; package Devel::REPL::Plugin::CompletionDriver::Globals; +# ABSTRACT: Complete global variables, packages, namespaced functions + +our $VERSION = '1.003028'; + use Devel::REPL::Plugin; -use namespace::clean -except => [ 'meta' ]; +use Devel::REPL::Plugin::Completion; # die early if cannot load +use namespace::autoclean; + +sub BEFORE_PLUGIN { + my $self = shift; + $self->load_plugin('Completion'); +} around complete => sub { my $orig = shift; @@ -52,9 +64,10 @@ around complete => sub { __END__ -=head1 NAME +=pod -Devel::REPL::Plugin::CompletionDriver::Globals - Complete global variables, packages, namespaced functions +=head1 AUTHOR -=cut +Shawn M Moore, C<< >> +=cut