]> git.proxmox.com Git - pve-common.git/commitdiff
PVE::CLIHandler - allow to define additional parameters for output formatter
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jul 2018 07:13:34 +0000 (09:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Jul 2018 09:08:52 +0000 (11:08 +0200)
Best shown with a example:

my $test_formatter = sub {
    my ($res, $result_schema, $fmt_param) = @_;
    PVE::CLIFormatter::print_api_result($res, $result_schema, undef, $fmt_param);
};

$cmddef = [ __PACKAGE__, 'test', [], undef, $test_formatter, $PVE::RESTHandler::standard_output_options],


No differences found