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=13e3d1117afb43c0b63c1d4b144a09a9f38b3574;hp=0671f08cd441aa0ccaa766a40ca5c48769d4ecd2;hb=c45376f3de16a5a467a1a26e63a279f30eb8672d;hpb=30b459d4fbeb6f2406a3013c7cbcc46a6d0ccf0d diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm index 0671f08..13e3d11 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.003029'; + 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,13 +64,10 @@ around complete => sub { __END__ -=head1 NAME - -Devel::REPL::Plugin::CompletionDriver::Globals - Complete global variables, packages, namespaced functions +=pod =head1 AUTHOR Shawn M Moore, C<< >> =cut -