diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-09 04:15:38 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-09 04:15:38 -0500 |
commit | fe381295cb56f327421934baf7dc749effd6b307 (patch) | |
tree | 739022ceb631ce71411caac869eccbfffe445bdd | |
parent | 620c54eb44ecec9ade940adb85c1a734334b4081 (diff) | |
download | app-hiveminder-fe381295cb56f327421934baf7dc749effd6b307.tar.gz app-hiveminder-fe381295cb56f327421934baf7dc749effd6b307.zip |
add debug
-rw-r--r-- | lib/App/Hiveminder/Command/DebugList.pm | 25 |
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; |