2019-04-17 11:11:04 +00:00
|
|
|
package Travelynx::Command::dumpconfig;
|
2024-07-26 16:55:58 +00:00
|
|
|
|
2023-07-03 15:59:25 +00:00
|
|
|
# Copyright (C) 2020-2023 Birte Kristina Friesel
|
2020-11-27 21:12:56 +00:00
|
|
|
#
|
2021-01-29 17:32:13 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-04-17 11:11:04 +00:00
|
|
|
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.
|