diff options
Diffstat (limited to 'lib/App/Hiveminder/Command/create.pm')
-rw-r--r-- | lib/App/Hiveminder/Command/create.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/App/Hiveminder/Command/create.pm b/lib/App/Hiveminder/Command/create.pm index 7143ba0..e99fb24 100644 --- a/lib/App/Hiveminder/Command/create.pm +++ b/lib/App/Hiveminder/Command/create.pm @@ -5,8 +5,8 @@ use App::Hiveminder::Utils qw/get_text_from_editor_or_cmdline display_tasks update_tasks/; extends 'App::Hiveminder::Command'; -sub run { - my ($self, $opt, $args) = @_; +sub command { + my ($self, $args) = @_; $args = join " ", @$args; my $text = get_text_from_editor_or_cmdline($args); @@ -22,7 +22,7 @@ sub run { sub { (description => (join "\n", @text)) }) }); } - print $ret, "\n"; + return $ret; } __PACKAGE__->meta()->make_immutable(); |