6 use System::Introspector::State;
7 use File::Tree::Snapshot;
8 use System::Introspector::Config;
11 'c|config=s' => \my $config_file,
12 's|storage=s' => \my $storage_dir,
13 'a|all' => \my $update_all,
14 'g|group=s' => \my @update_groups,
15 'h|help' => sub { pod2usage(0) },
18 die "Requires --all or --group option\n"
19 unless $update_all or @update_groups;
21 my $config = System::Introspector::Config->new(
22 config_file => (defined($config_file)
24 : "$storage_dir/main.conf"),
27 $config->has_group($_) or die "Unknown group '$_'\n"
30 @update_groups = $config->groups
33 my $state = System::Introspector::State->new(
38 $state->gather(@update_groups);
44 system-introspector - Generate System Introspection Data
48 system-introspector --storage <path> [OPTIONS]
52 =head2 -s <path>, --storage <path>
54 Path to storage. Always required.
56 =head2 -H <host>, --host <host>
62 Allow empty commits to storage.