line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Anego::CLI::Status; |
2
|
1
|
|
|
1
|
|
239
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
18
|
|
4
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
16
|
use Anego::Config; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
7
|
1
|
|
|
1
|
|
4
|
use Anego::Logger; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
42
|
|
8
|
1
|
|
|
1
|
|
218
|
use Anego::Task::GitLog; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
104
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub run { |
11
|
0
|
|
|
0
|
0
|
|
my $config = Anego::Config->load; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
my $logs = Anego::Task::GitLog->fetch; |
14
|
0
|
0
|
|
|
|
|
errorf("No change log\n") if @{ $logs } == 0; |
|
0
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
printf <<'__EOF__', $config->rdbms, $config->database, $config->schema_class, $config->schema_path; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
RDBMS: %s |
19
|
|
|
|
|
|
|
Database: %s |
20
|
|
|
|
|
|
|
Schema class: %s (%s) |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Hash Commit message |
23
|
|
|
|
|
|
|
-------------------------------------------------- |
24
|
|
|
|
|
|
|
__EOF__ |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
for my $log (@{ $logs }) { |
|
0
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
printf "%7s %s\n", $log->{hash}, $log->{message}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |