]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Helpers.pm
fully implement api get/set/create/delete
[pve-client.git] / PVE / APIClient / Helpers.pm
index 1ea8a5e25ea34ddfd9a47d7132e7125550a4af2c..d8a7fba0e50ca1069919293b3d3727f51c786765 100644 (file)
@@ -43,6 +43,23 @@ $build_pve_api_path_hash = sub {
     }
 };
 
+my $default_output_format = 'table';
+my $client_output_format =  $default_output_format;
+
+sub set_output_format {
+    my ($format) = @_;
+
+    if (!defined($format)) {
+       $client_output_format =  $default_output_format;
+    } else {
+       $client_output_format =  $format;
+    }
+}
+
+sub get_output_format {
+    return $client_output_format;
+}
+
 sub get_api_definition {
 
     if (!defined($pve_api_definition)) {