Minion/Command/minion.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 1 / 1 totaltotal 75.0% 12 / 16 CC 1 SCAR 2.5
CC
1
Cov
82%
help
2.0
__ANON__
1.1
BEGIN
1.0
CRAP 1.3
« Mojolicious/Plugin/Minion.pm ↑ Summary
1 package Minion::Command::minion;
2 1 ▶use Mojo::Base 'Mojolicious::Commands';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 has description => 'Minion job queue';
5 1 has hint => <<EOF;
6  
7 See 'APPLICATION minion help COMMAND' for more information on a specific
8 command.
9 EOF
10 1 ▶has message => sub { shift->extract_usage . "\nCommands:\n" };
Subroutine __ANON__: called CC=1 SCAR=0.0
11 0 ▶has namespaces => sub { ['Minion::Command::minion'] };
Subroutine __ANON__: not called CC=1 SCAR=1.2
12  
13 0 ▶sub help { shift->run(@_) }
Subroutine help: not called CC=1 SCAR=6.9
Pod documented
14  
15 1 1;
16  
17 =encoding utf8
18  
19 =head1 NAME
20  
21 Minion::Command::minion - Minion command
22  
23 =head1 SYNOPSIS
24  
25 Usage: APPLICATION minion COMMAND [OPTIONS]
26  
27 =head1 DESCRIPTION
28  
29 L<Minion::Command::minion> lists available L<Minion> commands.
30  
31 =head1 ATTRIBUTES
32  
33 L<Minion::Command::minion> inherits all attributes from L<Mojolicious::Commands> and implements the following new ones.
34  
35 =head2 description
36  
37 my $description = $minion->description;
38 $minion = $minion->description('Foo');
39  
40 Short description of this command, used for the command list.
41  
42 =head2 hint
43  
44 my $hint = $minion->hint;
45 $minion = $minion->hint('Foo');
46  
47 Short hint shown after listing available L<Minion> commands.
48  
49 =head2 message
50  
51 my $msg = $minion->message;
52 $minion = $minion->message('Bar');
53  
54 Short usage message shown before listing available L<Minion> commands.
55  
56 =head2 namespaces
57  
58 my $namespaces = $minion->namespaces;
59 $minion = $minion->namespaces(['MyApp::Command::minion']);
60  
61 Namespaces to search for available L<Minion> commands, defaults to L<Minion::Command::minion>.
62  
63 =head1 METHODS
64  
65 L<Minion::Command::minion> inherits all methods from L<Mojolicious::Commands> and implements the following new ones.
66  
67 =head2 help
68  
69 $minion->help('app');
70  
71 Print usage information for L<Minion> command.
72  
73 =head1 SEE ALSO
74  
75 L<Minion>, L<Minion::Guide>, L<https://minion.pm>, L<Mojolicious::Guides>, L<https://mojolicious.org>.
76  
77 =cut
« Mojolicious/Plugin/Minion.pm ↑ Summary