From fe381295cb56f327421934baf7dc749effd6b307 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 9 May 2008 04:15:38 -0500 Subject: add debug --- lib/App/Hiveminder/Command/DebugList.pm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/App/Hiveminder/Command/DebugList.pm 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; -- cgit v1.2.3-54-g00ecf