summaryrefslogtreecommitdiffstats
path: root/lib/App/Hiveminder/Command/Feedback.pm
blob: e0bc5299c8580a660ac64ee2c18814055c595a23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;