5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-10-22 23:33:10 +03:00
Files
pve-docs/extractapi.pl
Thomas Lamprecht bdcb3649fe auto-format code using perltidy with Proxmox style guide
using the new top-level `make tidy` target, which calls perltidy via
our wrapper to enforce the desired style as closely as possible.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-07-31 06:37:13 +02:00

15 lines
283 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
use PVE::RESTHandler;
use PVE::API2;
use JSON;
my $tree = PVE::RESTHandler::api_dump_remove_refs(PVE::RESTHandler::api_dump('PVE::API2'));
print "const apiSchema = " . to_json($tree, { pretty => 1, canonical => 1 }) . ";\n\n";
exit(0);