line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: dump configuration |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package HiD::App::Command::config; |
5
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:GENEHACK'; |
6
|
|
|
|
|
|
|
$HiD::App::Command::config::VERSION = '1.991'; |
7
|
4
|
|
|
4
|
|
17058
|
use Moose; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
36
|
|
8
|
|
|
|
|
|
|
extends 'HiD::App::Command'; |
9
|
4
|
|
|
4
|
|
27276
|
use namespace::autoclean; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
38
|
|
10
|
|
|
|
|
|
|
|
11
|
4
|
|
|
4
|
|
365
|
use 5.014; # strict, unicode_strings |
|
4
|
|
|
|
|
15
|
|
12
|
4
|
|
|
4
|
|
19
|
use utf8; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
44
|
|
13
|
4
|
|
|
4
|
|
104
|
use autodie; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
32
|
|
14
|
4
|
|
|
4
|
|
18328
|
use warnings qw/ FATAL utf8 /; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
192
|
|
15
|
4
|
|
|
4
|
|
24
|
use open qw/ :std :utf8 /; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
51
|
|
16
|
4
|
|
|
4
|
|
613
|
use charnames qw/ :full /; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
33
|
|
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
4
|
|
3352
|
use Data::Printer return_value => 'dump'; |
|
4
|
|
|
|
|
91196
|
|
|
4
|
|
|
|
|
41
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _run { |
21
|
4
|
|
|
4
|
|
17
|
my( $self , $opts , $args ) = @_; |
22
|
|
|
|
|
|
|
|
23
|
4
|
100
|
|
|
|
23
|
$args = [ 'config' ] unless $args->[0]; |
24
|
|
|
|
|
|
|
|
25
|
4
|
|
|
|
|
11
|
my $out; |
26
|
4
|
|
|
|
|
141
|
$out .= p $self->hid->$_ foreach @$args; |
27
|
|
|
|
|
|
|
|
28
|
4
|
|
|
|
|
17315
|
print $out; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
HiD::App::Command::config - dump configuration |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$ hid config |
47
|
|
|
|
|
|
|
\ { |
48
|
|
|
|
|
|
|
destination "_site", |
49
|
|
|
|
|
|
|
include_dir "_includes", |
50
|
|
|
|
|
|
|
layout_dir "_layouts", |
51
|
|
|
|
|
|
|
posts_dir "_posts", |
52
|
|
|
|
|
|
|
source "." |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
$ hid config pages |
55
|
|
|
|
|
|
|
[ massive output elided ] |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Dumps the active configuration (using L<Data::Printer>) |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
If given an argument, will dump the corresponding attribute from the active |
62
|
|
|
|
|
|
|
L<HiD> instance. This can be useful when debugging, because it allows you to |
63
|
|
|
|
|
|
|
see precisely what data structures are being built. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
See L<HiD::App::Command> for additional command line options supported by all |
68
|
|
|
|
|
|
|
sub commands. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 VERSION |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
version 1.991 |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 AUTHOR |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
John SJ Anderson <genehack@genehack.org> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This software is copyright (c) 2015 by John SJ Anderson. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
83
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |