summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/dumpconfig.pm
blob: 2c308c9827c2125fcfbd2c31e3c250cc9bc646a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package Travelynx::Command::dumpconfig;

# Copyright (C) 2020-2023 Birte Kristina Friesel
#
# SPDX-License-Identifier: AGPL-3.0-or-later
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.