1 package Devel::REPL::Plugin::Nopaste;
3 use Devel::REPL::Plugin;
4 use MooseX::AttributeHelpers;
5 use namespace::clean -except => [ 'meta' ];
9 $self->load_plugin('Turtles');
12 has complete_session => (
13 metaclass => 'String',
18 append => 'add_to_session',
26 # prepend each line with #
29 $self->add_to_session($line . "\n");
37 my @ret = $orig->($self, $line, @_);
39 $self->add_to_session(join("\n", @ret) . "\n\n");
48 return App::Nopaste->nopaste(
49 text => $self->complete_session,
50 desc => "Devel::REPL session",
61 Devel::REPL::Plugin::Nopaste - #nopaste to upload session's input and output
65 Shawn M Moore, C<< <sartak at gmail dot com> >>