use strict;
use warnings;
use Cwd 'abs_path';
-use lib '/usr/share/pve-client';
-use lib '.';
use Data::Dumper;
-use PVE::JSONSchema qw(register_standard_option get_standard_option);
-use PVE::CLIHandler;
+use PVE::APIClient::JSONSchema qw(register_standard_option get_standard_option);
+use PVE::APIClient::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;
+use PVE::APIClient::Commands::GuestStatus;
use JSON;
die "implement me";
}
-use base qw(PVE::CLIHandler);
+use base qw(PVE::APIClient::CLIHandler);
my $cmd = $ARGV[0];
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']],