| 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; | |