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=8d075d186da78ef747abe6d05a66fa0b1cee2f23;hp=98f3443364ee934b2b333452910eb7a8a19d2c87;hb=6f4f9516b3422a8ce51b89b596fb808b197f833e;hpb=310ddf9f9d5d370f7b4aa89e7bbf4fd7f6a3814f diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm index 98f3443..8d075d1 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm @@ -1,6 +1,15 @@ +use strict; +use warnings; package Devel::REPL::Plugin::CompletionDriver::Globals; + 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; @@ -50,3 +59,15 @@ around complete => sub { 1; +__END__ + +=head1 NAME + +Devel::REPL::Plugin::CompletionDriver::Globals - Complete global variables, packages, namespaced functions + +=head1 AUTHOR + +Shawn M Moore, C<< >> + +=cut +