X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=gen-pct-mountpoint-opts.pl;h=151c18a2ac6fe85a7f052de515aa48110a46f37c;hp=4fd6964a7223e93556ab14cec6694bcfb2b690e6;hb=effd6c43413600787db1997160cd9926ed431b0a;hpb=fe154a4fa363429b275be49d71dac954767030e6 diff --git a/gen-pct-mountpoint-opts.pl b/gen-pct-mountpoint-opts.pl index 4fd6964..151c18a 100755 --- a/gen-pct-mountpoint-opts.pl +++ b/gen-pct-mountpoint-opts.pl @@ -5,6 +5,7 @@ use strict; use warnings; use PVE::RESTHandler; use PVE::LXC::Config; +use PVE::JSONSchema; my $prop = PVE::LXC::Config->json_config_properties(); @@ -12,12 +13,16 @@ my $rootfs_prop = $prop->{rootfs}; my $mp_prop = $prop->{mp0}; -my $typetext = PVE::PodParser::schema_get_type_text($rootfs_prop); +my $typetext = PVE::JSONSchema::schema_get_type_text($rootfs_prop); -print "`rootfs`: `$typetext`\n\n"; +print "`rootfs`: `$typetext` ::\n\n"; -$typetext = PVE::PodParser::schema_get_type_text($mp_prop); +print $rootfs_prop->{description} . + " See below for a detailed description of all options.\n\n"; -print "`mp[n]`: `$typetext`\n\n"; +$typetext = PVE::JSONSchema::schema_get_type_text($mp_prop); -print PVE::RESTHandler::dump_properties($mp_prop->{format}); +print "`mp[n]`: `$typetext` ::\n\n"; +print $mp_prop->{description} . "\n\n"; + +print PVE::RESTHandler::dump_properties($mp_prop->{format}, 'asciidoc', 'config-sub');