]>
git.proxmox.com Git - pmg-docs.git/blob - gen-pmg.conf.5-opts.pl
fd928cea632848c2aeded12d037a0d90856421d2
12 my $types = PMG
::Config
::Base-
>lookup_types;
14 my $single_section = shift;
29 if ($single_section) {
30 if (my $a = $key_groups->{$single_section}) {
31 my ($sec, $hash) = @$a;
32 $single_section = $sec;
38 foreach my $section (@$types) {
39 my $plugin = PMG
::Config
::Base-
>lookup($section);
40 my $schema = $plugin->updateSchema(1);
41 my $properties = $schema->{properties
};
43 if (defined($single_section)) {
44 next if $section ne $single_section;
46 print ".Section '$section'\n\n";
52 my ($key, $phash) = @_;
53 return 1 if $key eq 'digest';
54 return 1 if $key eq 'delete';
55 return 1 if $select_keys && !$select_keys->{$key};
59 print PVE
::RESTHandler
::dump_properties
(
60 $properties, 'asciidoc', 'config', $filter);
63 if (defined($single_section)) {
64 die "no such section '$single_section'" if !$found;