mirror of
https://github.com/derf/travelynx
synced 2024-12-13 06:22:33 +00:00
25 lines
384 B
Perl
25 lines
384 B
Perl
|
package Travelynx::Command::dumpconfig;
|
||
|
use Mojo::Base 'Mojolicious::Command';
|
||
|
|
||
|
use Data::Dumper;
|
||
|
|
||
|
has description => 'Dump current configuration';
|
||
|
|
||
|
has usage => sub { shift->extract_usage };
|
||
|
|
||
|
sub run {
|
||
|
my ($self) = @_;
|
||
|
|
||
|
print Dumper( $self->app->config );
|
||
|
}
|
||
|
|
||
|
1;
|
||
|
|
||
|
__END__
|
||
|
|
||
|
=head1 SYNOPSIS
|
||
|
|
||
|
Usage: index.pl dumpconfig
|
||
|
|
||
|
Dumps the current configuration (travelynx.conf) to stdout.
|