line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gruntmaster::App; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
66382
|
use 5.014000; |
|
1
|
|
|
|
|
13
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
58
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '6000.001'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
468
|
use App::Cmd::Setup '-app'; |
|
1
|
|
|
|
|
42202
|
|
|
1
|
|
|
|
|
8
|
|
9
|
1
|
|
|
1
|
|
674
|
use Gruntmaster::Data; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
235
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub allow_any_unambiguous_abbrev () { 1 } |
12
|
0
|
|
|
0
|
1
|
|
sub default_command { 'commands' } # Show usage when called without arguments |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub global_opt_spec { |
15
|
0
|
|
|
0
|
1
|
|
(['table' => 'hidden', {one_of => [ |
16
|
|
|
|
|
|
|
['contests|ct|c' => 'Act on contests'], |
17
|
|
|
|
|
|
|
['jobs|j' => 'Act on jobs'], |
18
|
|
|
|
|
|
|
['problems|pb|p' => 'Act on problems'], |
19
|
|
|
|
|
|
|
['users|us|u' => 'Act on users']]}]) |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
sub table { shift->global_options->{table} } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub run { |
25
|
0
|
|
0
|
0
|
1
|
|
dbinit $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:'; |
26
|
0
|
|
|
|
|
|
shift->SUPER::run(@_); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |