line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Minion::Command::minion; |
2
|
1
|
|
|
1
|
|
1854
|
use Mojo::Base 'Mojolicious::Commands'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
has description => 'Minion job queue'; |
5
|
|
|
|
|
|
|
has hint => <
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
See 'APPLICATION minion help COMMAND' for more information on a specific |
8
|
|
|
|
|
|
|
command. |
9
|
|
|
|
|
|
|
EOF |
10
|
|
|
|
|
|
|
has message => sub { shift->extract_usage . "\nCommands:\n" }; |
11
|
|
|
|
|
|
|
has namespaces => sub { ['Minion::Command::minion'] }; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
0
|
1
|
|
sub help { shift->run(@_) } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
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 lists available L commands. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
L inherits all attributes from L 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 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 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 commands, defaults to L. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 METHODS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
L inherits all methods from L and implements the following new ones. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 help |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
$minion->help('app'); |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Print usage information for L command. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 SEE ALSO |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
L, L, L, L, L. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |