From 620c54eb44ecec9ade940adb85c1a734334b4081 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 9 May 2008 04:13:29 -0500 Subject: add feedback --- lib/App/Hiveminder/Command/Feedback.pm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/App/Hiveminder/Command/Feedback.pm diff --git a/lib/App/Hiveminder/Command/Feedback.pm b/lib/App/Hiveminder/Command/Feedback.pm new file mode 100644 index 0000000..e0bc529 --- /dev/null +++ b/lib/App/Hiveminder/Command/Feedback.pm @@ -0,0 +1,26 @@ +#!/usr/bin/perl +package App::Hiveminder::Command::Feedback; +use Moose; +use App::Hiveminder::Utils qw/get_text_from_editor_or_cmdline/; +extends 'App::Hiveminder::Command'; + +=head2 NAME + +App::Hiveminder::Command::Feedback - Give feedback to the Hiveminder team + +=cut + +sub command_names { qw/feedback/ } + +sub command { + my $self = shift; + + # XXX: no real way to test this... + my $ret = $self->hm->act('SendFeedback', content => + get_text_from_editor_or_cmdline(@_)); + + return $ret->{message}; +} + +__PACKAGE__->meta()->make_immutable(); +1; -- cgit v1.2.3-54-g00ecf