X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=pveclient;h=c87b2cc8eabb7b220d8c392eb43dae96fca5dfe6;hb=6f6263a7ddefe1e686b7787c908b40477c48a93e;hp=2995fd5441e732bcf451828d7dca6f3b2cbde816;hpb=4fbacba6deb6f06b5b6dde2524583ae62ca1d6c3;p=pve-client.git diff --git a/pveclient b/pveclient index 2995fd5..c87b2cc 100755 --- a/pveclient +++ b/pveclient @@ -8,6 +8,7 @@ use Cwd 'abs_path'; use Data::Dumper; use PVE::APIClient::JSONSchema qw(register_standard_option get_standard_option); +use PVE::APIClient::CLIFormatter; use PVE::APIClient::CLIHandler; use PVE::APIClient::PTY; @@ -108,7 +109,11 @@ $path_properties->{api_path} = { my $format_result = sub { my ($data) = @_; - PVE::APIClient::Helpers::print_result($data, $path_returns); + my $format = PVE::APIClient::Helpers::get_output_format(); + + my $options = PVE::APIClient::CLIFormatter::query_terminal_options({}); + + PVE::APIClient::CLIFormatter::print_api_result($format, $data, $path_returns, undef, $options); }; __PACKAGE__->register_method ({