use Devel::REPL::Plugin;
use Scalar::Util qw(weaken);
-use namespace::autoclean;
+use namespace::sweep;
use vars qw($COMMAND_INSTALLER);
has 'command_set' => (
my ($self) = @_;
$self->load_plugin('Packages');
unless ($self->can('setup_commands')) {
- $self->meta->add_method('setup_commands' => sub {});
+ my $pkg = ref $self || $self;
+ no strict 'refs';
+ *{"${pkg}::setup_commands"} = sub { };
}
}