]> git.proxmox.com Git - pve-client.git/blobdiff - pveclient
Add spice command
[pve-client.git] / pveclient
index 70db84a1b7b6bfd4fa5fd322c2009552b4d88bfa..01cb74b6e575dcab861322ef3ea9349a1dbf2aa8 100755 (executable)
--- a/pveclient
+++ b/pveclient
@@ -18,7 +18,7 @@ use PVE::APIClient::Commands::config;
 use PVE::APIClient::Commands::remote;
 use PVE::APIClient::Commands::list;
 use PVE::APIClient::Commands::lxc;
-use PVE::APIClient::Commands::help;
+use PVE::APIClient::Commands::GuestStatus;
 
 use JSON;
 
@@ -162,6 +162,10 @@ our $cmddef = {
     lxc => $PVE::APIClient::Commands::lxc::cmddef,
     remote => $PVE::APIClient::Commands::remote::cmddef,
 
+    spice => [ 'PVE::APIClient::Commands::GuestStatus', 'spice', ['remote', 'vmid']],
+    start => [ 'PVE::APIClient::Commands::GuestStatus', 'start', ['remote', 'vmid']],
+    stop => [ 'PVE::APIClient::Commands::GuestStatus', 'stop', ['remote', 'vmid']],
+
     api => {
        get => [ __PACKAGE__, 'pveclient_get', ['remote', 'api_path']],
        set => [ __PACKAGE__, 'pveclient_set', ['remote', 'api_path']],