blob: e77a19d1b4f90847bfe64b0dc6c7f52f83961856 (
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
29
30
|
#!/usr/bin/perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/lib";
use Getopt::Long;
use LXRng ROOT => $FindBin::Bin;
use LXRng::Context;
my $trees = 0;
GetOptions("trees" => \$trees)
or die "Failed to parse options";
my @configs = LXRng::Context->read_config();
die("Unable to parse config")
unless ref($configs[0]) eq 'HASH';
if ($trees) {
print(map { "$_\n" } sort keys %{$configs[0]});
}
#use Data::Dumper;
#warn Dumper(\@configs);
|