]> git.proxmox.com Git - pmg-docs.git/blame - gen-pmg.conf.5-opts.pl
add pmg.conf manual page
[pmg-docs.git] / gen-pmg.conf.5-opts.pl
CommitLineData
f872534d
DM
1#!/usr/bin/perl
2
3use lib '.';
4use strict;
5use warnings;
6use PVE::RESTHandler;
7
8use Data::Dumper;
9
10use PMG::Config;
11
12my $types = PMG::Config::Base->lookup_types;
13
14foreach my $section (@$types) {
15 my $plugin = PMG::Config::Base->lookup($section);
16 my $schema = $plugin->updateSchema(1);
17 my $properties = $schema->{properties};
18
19 print ".Section '$section'\n\n";
20
21 print PVE::RESTHandler::dump_properties($properties);
22}
23
24exit(0);