summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/App/Hiveminder/Command/List.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/App/Hiveminder/Command/List.pm b/lib/App/Hiveminder/Command/List.pm
new file mode 100644
index 0000000..337adf6
--- /dev/null
+++ b/lib/App/Hiveminder/Command/List.pm
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+package App::Hiveminder::Command::List;
+use Moose;
+use App::Hiveminder::Utils qw/parse_args display_tasks/;
+extends 'App::Hiveminder::Command';
+
+=head2 NAME
+
+App::Hiveminder::Command::List - List tasks
+
+=cut
+
+sub command_names { qw/list ls/ }
+
+sub command {
+ my ($self, $args) = @_;
+
+ return unless @_ > 0;
+ return display_tasks($self->hm,
+ $self->hm->get_tasks(%{ parse_args @$args }));
+}
+
+1;