diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-06-08 12:03:31 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-08 12:06:41 -0500 |
commit | f4775be782ef0cd1003190169b539b3ba2367292 (patch) | |
tree | fc70528bd046cd197fe6e4dbf96b476255deb663 /lib/Reply | |
parent | ca4d93af889b6086deabcdf1825181f46e17957a (diff) | |
download | reply-f4775be782ef0cd1003190169b539b3ba2367292.tar.gz reply-f4775be782ef0cd1003190169b539b3ba2367292.zip |
allow running single commands through the repl
Diffstat (limited to 'lib/Reply')
-rw-r--r-- | lib/Reply/Plugin/FancyPrompt.pm | 2 | ||||
-rw-r--r-- | lib/Reply/Plugin/Nopaste.pm | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/FancyPrompt.pm b/lib/Reply/Plugin/FancyPrompt.pm index d0afc38..1f36d45 100644 --- a/lib/Reply/Plugin/FancyPrompt.pm +++ b/lib/Reply/Plugin/FancyPrompt.pm @@ -33,7 +33,9 @@ sub prompt { sub loop { my $self = shift; + my ($continue) = @_; $self->{counter}++; + $continue; } 1; diff --git a/lib/Reply/Plugin/Nopaste.pm b/lib/Reply/Plugin/Nopaste.pm index dec0940..566c668 100644 --- a/lib/Reply/Plugin/Nopaste.pm +++ b/lib/Reply/Plugin/Nopaste.pm @@ -70,12 +70,15 @@ sub print_result { sub loop { my $self = shift; + my ($continue) = @_; my $prompt = delete $self->{prompt}; my $line = delete $self->{line}; my $result = delete $self->{result}; $self->{history} .= "$prompt$line$result"; + + $continue; } sub command_nopaste { |