summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/App/Hiveminder/Command/DebugList.pm25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/App/Hiveminder/Command/DebugList.pm b/lib/App/Hiveminder/Command/DebugList.pm
new file mode 100644
index 0000000..9c382d2
--- /dev/null
+++ b/lib/App/Hiveminder/Command/DebugList.pm
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+package App::Hiveminder::Command::DebugList;
+use Moose;
+use App::Hiveminder::Utils qw/parse_args/;
+extends 'App::Hiveminder::Command';
+
+=head2 NAME
+
+App::Hiveminder::Command::DebugList - Display the raw result of listing tasks
+
+=cut
+
+sub command_names { qw/debug-list debug/ }
+
+sub command {
+ my $self = shift;
+
+ return unless @_ > 0;
+ my $tasks = [$self->hm->get_tasks(%{ parse_args @_ })];
+ require Data::Dump::Streamer;
+ return Data::Dump::Streamer::Dump($tasks)->Out();
+}
+
+__PACKAGE__->meta()->make_immutable();
+1;