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