]> git.proxmox.com Git - pve-client.git/blobdiff - pveclient
rename start.pm to GuestStatus.pm, implement stop command
[pve-client.git] / pveclient
index 8ef37a94b467ff7aae1601bf10a69cec3460c0f2..4abe7b73a6a2b4020df28c58dc2bed617d222bcc 100755 (executable)
--- a/pveclient
+++ b/pveclient
@@ -18,8 +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::start;
+use PVE::APIClient::Commands::GuestStatus;
 
 use JSON;
 
@@ -163,7 +162,8 @@ our $cmddef = {
     lxc => $PVE::APIClient::Commands::lxc::cmddef,
     remote => $PVE::APIClient::Commands::remote::cmddef,
     
-    start => $PVE::APIClient::Commands::start::cmddef,
+    start => [ 'PVE::APIClient::Commands::GuestStatus', 'start', ['remote', 'vmid']],
+    stop => [ 'PVE::APIClient::Commands::GuestStatus', 'stop', ['remote', 'vmid']],
 
     api => {
        get => [ __PACKAGE__, 'pveclient_get', ['remote', 'api_path']],