]> git.proxmox.com Git - pmg-docs.git/blobdiff - gen-pmg.conf.5-opts.pl
add pmg.conf manual page
[pmg-docs.git] / gen-pmg.conf.5-opts.pl
diff --git a/gen-pmg.conf.5-opts.pl b/gen-pmg.conf.5-opts.pl
new file mode 100755 (executable)
index 0000000..601d14f
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+
+use Data::Dumper;
+
+use PMG::Config;
+
+my $types = PMG::Config::Base->lookup_types;
+
+foreach my $section (@$types) {
+    my $plugin = PMG::Config::Base->lookup($section);
+    my $schema = $plugin->updateSchema(1);
+    my $properties = $schema->{properties};
+    
+    print ".Section '$section'\n\n";
+    
+    print PVE::RESTHandler::dump_properties($properties);
+}
+exit(0);