SD/CLI/Command/Help/Comments.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package App::SD::CLI::Command::Help::Comments;
2 use Any::Moose;
3 extends 'App::SD::CLI::Command::Help';
4  
5 sub run {
6 my $self = shift;
7 $self->print_header('Working with ticket comments');
8 my ${cmd}= $self->cli->get_script_name;
9  
10 print <<EOF
11  
12 ${cmd}ticket comment 456
13 Add a comment to the ticket with id 456, popping up a text editor.
14  
15 ${cmd}ticket comment 456 --file=myfile
16 ${cmd}ticket comment 456 -f myfile
17 Add a comment to the ticket with id 456, using the content of 'myfile'.
18  
19 ${cmd}ticket comment 456 --content="The text of the comment."
20 ${cmd}ticket comment 456 -m "The text of the comment."
21 Add a comment to the ticket with id 456, specifying its content on
22 the commandline.
23  
24 ${cmd}ticket comment list
25 List all ticket comments.
26  
27 ${cmd}ticket comment show 4
28 Show ticket comment 4 and all metadata.
29  
30 ${cmd}ticket comments 9
31 Show all comments belonging to the ticket with id 9.
32 EOF
33  
34 }
35  
36 __PACKAGE__->meta->make_immutable;
37 no Any::Moose;
38  
39 1;
40