| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# |
|
2
|
|
|
|
|
|
|
# This file is part of App-Cme |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2014-2022 by Dominique Dumont <ddumont@cpan.org>. |
|
5
|
|
|
|
|
|
|
# |
|
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
|
7
|
|
|
|
|
|
|
# |
|
8
|
|
|
|
|
|
|
# The GNU Lesser General Public License, Version 2.1, February 1999 |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# ABSTRACT: Generates pod doc from model files |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$App::Cme::Command::gen_class_pod::VERSION = '1.038'; |
|
13
|
|
|
|
|
|
|
use strict; |
|
14
|
1
|
|
|
1
|
|
604
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
28
|
|
|
15
|
1
|
|
|
1
|
|
5
|
use 5.10.1; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
19
|
|
|
16
|
1
|
|
|
1
|
|
9
|
|
|
|
1
|
|
|
|
|
24
|
|
|
17
|
|
|
|
|
|
|
use App::Cme -command ; |
|
18
|
1
|
|
|
1
|
|
5
|
use Config::Model::Utils::GenClassPod; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
6
|
|
|
19
|
1
|
|
|
1
|
|
642
|
|
|
|
1
|
|
|
|
|
508
|
|
|
|
1
|
|
|
|
|
118
|
|
|
20
|
|
|
|
|
|
|
my $self = shift ; |
|
21
|
|
|
|
|
|
|
return ( 'gen-class-pod' , $self->SUPER::command_names ); |
|
22
|
25
|
|
|
25
|
1
|
183651
|
} |
|
23
|
25
|
|
|
|
|
88
|
|
|
24
|
|
|
|
|
|
|
return << "EOD" |
|
25
|
|
|
|
|
|
|
Generate pod documentation from configuration models found in ./lib directory |
|
26
|
|
|
|
|
|
|
EOD |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my ($self, $opt, $args) = @_; |
|
31
|
0
|
|
|
0
|
1
|
|
gen_class_pod(@$args); |
|
32
|
|
|
|
|
|
|
return; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
0
|
|
|
0
|
1
|
|
|
|
35
|
0
|
|
|
|
|
|
1; |
|
36
|
0
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=pod |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=encoding UTF-8 |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
App::Cme::Command::gen_class_pod - Generates pod doc from model files |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 VERSION |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
version 1.038 |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
cme gen-class-pod [ Foo ... ] |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This command scans C<./lib/Config/Model/models/*.d> |
|
57
|
|
|
|
|
|
|
and generate pod documentation for each file found there using |
|
58
|
|
|
|
|
|
|
L<Config::Model::generate_doc|Config::Model/"generate_doc ( top_class_name , [ directory ] )"> |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
You can also pass one or more class names. C<gen_class_pod> will write |
|
61
|
|
|
|
|
|
|
the documentation for each passed class and all other classes used by |
|
62
|
|
|
|
|
|
|
the passed classes. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
L<cme>, L<Config::Model::Utils::GenClassPod> |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Dominique Dumont |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This software is Copyright (c) 2014-2022 by Dominique Dumont <ddumont@cpan.org>. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This is free software, licensed under: |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
The GNU Lesser General Public License, Version 2.1, February 1999 |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |