Command/configuration.pm

filter: Statementstmt 80.0% 16 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 74.0% 20 / 27 CC 1 SCAR 1.7
CC
1
Cov
80%
run
2.0
__ANON__
1.1
BEGIN
1.0
CRAP 1.2
« Command/version.pm ↑ Summary Command/init.pm »
1 package PMLTQ::Command::configuration;
2 1 our $AUTHORITY = 'cpan:MATY';
3 1 $PMLTQ::Command::configuration::VERSION = '2.0.3';
4 # ABSTRACT: GET current configuration
5  
6 1 ▶use PMLTQ::Base 'PMLTQ::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use YAML::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Hash::Merge 'merge';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶has usage => sub { shift->extract_usage };
Subroutine __ANON__: not called CC=1 SCAR=1.2
12  
13 0 ▶sub run {
Subroutine run: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my $self = shift;
15 0 my $config = $self->config;
16 0 print YAML::Tiny->new( $config)->write_string;
17 }
18  
19 =head1 SYNOPSIS
20  
21 pmltq configuration
22  
23 =head1 DESCRIPTION
24  
25 Returns current configuration in yaml format (a merge of defaults, config file and command line options)
26  
27 =head1 OPTIONS
28  
29 =cut
30  
31 1 1;
« Command/version.pm ↑ Summary Command/init.pm »