1 package Devel::REPL::Plugin::Nopaste;
3 use Devel::REPL::Plugin;
4 use MooseX::AttributeHelpers;
5 use namespace::clean -except => [ 'meta' ];
6 use Scalar::Util qw(blessed);
10 $self->load_plugin('Turtles');
13 has complete_session => (
14 metaclass => 'String',
20 append => 'add_to_session',
28 # prepend each line with #
31 $self->add_to_session($line . "\n");
39 my @ret = $orig->($self, $line, @_);
40 my @ret_as_str = map {
43 } elsif (blessed($_) && $_->can('stringify')) {
50 $self->add_to_session(join("\n", @ret_as_str) . "\n\n");
59 return App::Nopaste->nopaste(
60 text => $self->complete_session,
61 desc => "Devel::REPL session",
72 Devel::REPL::Plugin::Nopaste - #nopaste to upload session's input and output
76 Shawn M Moore, C<< <sartak at gmail dot com> >>