]> git.proxmox.com Git - pve-client.git/blobdiff - pveclient
add more helper for bash completion
[pve-client.git] / pveclient
index d44f020cd03e47622edd5f03629acf711b56200e..6a06a88181b4340684591be712e74fbfec3664bc 100755 (executable)
--- a/pveclient
+++ b/pveclient
@@ -13,6 +13,7 @@ use PVE::CLIHandler;
 use PVE::APIClient::LWP;
 use PVE::APIClient::Helpers;
 use PVE::APIClient::Commands::remote;
+use PVE::APIClient::Commands::list;
 use PVE::APIClient::Commands::lxc;
 use PVE::APIClient::Commands::help;
 
@@ -30,25 +31,8 @@ sub call_method {
     die "implement me";
 }
 
-# NOTE: This binary is just a placeholer - nothing implemented so far!
-
-#my $hostname = 'localhost';
-#my $username = 'root@pam';
-#
-#my $conn = PVE::APIClient::LWP->new(
-#    username => $username,
-#    #password => 'yourpassword',
-#    #ticket => $ticket,
-#    #csrftoken => $csrftoken,
-#    host => $hostname,
-#    # allow manual fingerprint verification
-#    manual_verification => 1,
-#    );
-
-#my $res = $conn->get("/", {});
-#print to_json($res, { pretty => 1, canonical => 1});
-
 my $cli_class_handlers = {
+    list => 'PVE::APIClient::Commands::list',
     lxc => 'PVE::APIClient::Commands::lxc',
     remote => 'PVE::APIClient::Commands::remote',
     help => 'PVE::APIClient::Commands::help',